diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-14 16:05:55 -0700 |
---|---|---|
committer | Maciej Wereski <m.wereski@partner.samsung.com> | 2015-03-23 18:33:25 +0100 |
commit | 0990ee1fd9327b54f019ff1e0f26414245bc8057 (patch) | |
tree | 91ff2c741b2c670e1eece1195b6dafe3bd185e8d /include | |
parent | b4c82cb9ffd7e2897fdefb3eedd4ecdf3139ff34 (diff) | |
download | linux-3.10-0990ee1fd9327b54f019ff1e0f26414245bc8057.tar.gz linux-3.10-0990ee1fd9327b54f019ff1e0f26414245bc8057.tar.bz2 linux-3.10-0990ee1fd9327b54f019ff1e0f26414245bc8057.zip |
sysfs: add support for binary attributes in groups
groups should be able to support binary attributes, just like it
supports "normal" attributes. This lets us only handle one type of
structure, groups, throughout the driver core and subsystems, making
binary attributes a "full fledged" part of the driver model, and not
something just "tacked on".
Reported-by: Oliver Schinagl <oliver@schinagl.nl>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sysfs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index 9cd20c8404e..f4350a1b1f6 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h @@ -21,6 +21,7 @@ struct kobject; struct module; +struct bin_attribute; enum kobj_ns_type; struct attribute { @@ -59,10 +60,9 @@ struct attribute_group { umode_t (*is_visible)(struct kobject *, struct attribute *, int); struct attribute **attrs; + struct bin_attribute **bin_attrs; }; - - /** * Use these macros to make defining attributes easier. See include/linux/device.h * for examples.. |