aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sysfs.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-14 19:05:55 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-16 13:57:36 -0400
commit6ab9cea16075ea707022753395f340b67f64304c (patch)
treeb61347a5ae4f7f85ede80f5e3b5cf74e5b167ebc /include/linux/sysfs.h
parentced321bf9151535f85779b0004c93529f860b2a4 (diff)
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/linux/sysfs.h')
-rw-r--r--include/linux/sysfs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
index d50a96b9bb6d..2c3b6a30697d 100644
--- a/include/linux/sysfs.h
+++ b/include/linux/sysfs.h
@@ -21,6 +21,7 @@
21 21
22struct kobject; 22struct kobject;
23struct module; 23struct module;
24struct bin_attribute;
24enum kobj_ns_type; 25enum kobj_ns_type;
25 26
26struct attribute { 27struct attribute {
@@ -59,10 +60,9 @@ struct attribute_group {
59 umode_t (*is_visible)(struct kobject *, 60 umode_t (*is_visible)(struct kobject *,
60 struct attribute *, int); 61 struct attribute *, int);
61 struct attribute **attrs; 62 struct attribute **attrs;
63 struct bin_attribute **bin_attrs;
62}; 64};
63 65
64
65
66/** 66/**
67 * Use these macros to make defining attributes easier. See include/linux/device.h 67 * Use these macros to make defining attributes easier. See include/linux/device.h
68 * for examples.. 68 * for examples..