diff options
author | Greg Kroah-Hartman <greg@kroah.com> | 2014-11-17 16:55:54 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <greg@kroah.com> | 2014-11-17 16:55:54 -0800 |
commit | 4efe6065ce0e68fc6216114d061a14b9828c0e00 (patch) | |
tree | 5c65879b28dc22e4442e32ee734b4da07290ad0b /drivers/staging/greybus/kernel_ver.h | |
parent | ac4029fb60abd00f63cfb4c626f1653a918dcc66 (diff) |
greybus: vibrator-gb: fixes based on Marti's review comments.
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'drivers/staging/greybus/kernel_ver.h')
-rw-r--r-- | drivers/staging/greybus/kernel_ver.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/staging/greybus/kernel_ver.h b/drivers/staging/greybus/kernel_ver.h index ca0da11e4d8d..a39ceafb9d9b 100644 --- a/drivers/staging/greybus/kernel_ver.h +++ b/drivers/staging/greybus/kernel_ver.h @@ -13,6 +13,13 @@ #ifndef __GREYBUS_KERNEL_VER_H #define __GREYBUS_KERNEL_VER_H +#ifndef __ATTR_WO +#define __ATTR_WO(_name) { \ + .attr = { .name = __stringify(_name), .mode = S_IWUSR }, \ + .store = _name##_store, \ +} +#endif + #ifndef DEVICE_ATTR_RO #define DEVICE_ATTR_RO(_name) \ struct device_attribute dev_attr_##_name = __ATTR_RO(_name) @@ -23,13 +30,6 @@ struct device_attribute dev_attr_##_name = __ATTR_WO(_name) #endif -#ifndef __ATTR_WO -#define __ATTR_WO(_name) { \ - .attr = { .name = __stringify(_name), .mode = S_IWUSR }, \ - .store = _name##_store, \ -} -#endif - #ifndef U8_MAX #define U8_MAX ((u8)~0U) #endif /* ! U8_MAX */ |