aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/device.h
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor@insightbb.com>2007-03-10 01:37:34 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2007-04-27 13:57:28 -0400
commit621a1672f7377e08a942f205d6742d8af1292aab (patch)
tree9249308b3df0675f713058e3f5ac0442ce2a5e1e /include/linux/device.h
parentb8c5cec23d5c33b767a1cddebd4f8813a9563e3c (diff)
driver core: Use attribute groups in struct device_type
Driver core: use attribute groups in struct device_type Attribute groups are more flexible than attribute lists (an attribute list can be represented by anonymous group) so switch struct device_type to use them. Also rework attribute creation for devices so that they all cleaned up properly in case of errors. Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Cc: Kay Sievers <kay.sievers@novell.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/device.h')
-rw-r--r--include/linux/device.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index 9d54fe13eb2..3b64fdecd04 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -332,7 +332,7 @@ extern struct class_device *class_device_create(struct class *cls,
332extern void class_device_destroy(struct class *cls, dev_t devt); 332extern void class_device_destroy(struct class *cls, dev_t devt);
333 333
334struct device_type { 334struct device_type {
335 struct device_attribute *attrs; 335 struct attribute_group **groups;
336 int (*uevent)(struct device *dev, char **envp, int num_envp, 336 int (*uevent)(struct device *dev, char **envp, int num_envp,
337 char *buffer, int buffer_size); 337 char *buffer, int buffer_size);
338 void (*release)(struct device *dev); 338 void (*release)(struct device *dev);