aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/device.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/device.h')
-rw-r--r--include/linux/device.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index 9943f51cd809..b2e5da2b637b 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -199,6 +199,7 @@ extern int class_device_create_file(struct class_device *,
199 * @node: for internal use by the driver core only. 199 * @node: for internal use by the driver core only.
200 * @kobj: for internal use by the driver core only. 200 * @kobj: for internal use by the driver core only.
201 * @devt_attr: for internal use by the driver core only. 201 * @devt_attr: for internal use by the driver core only.
202 * @groups: optional additional groups to be created
202 * @dev: if set, a symlink to the struct device is created in the sysfs 203 * @dev: if set, a symlink to the struct device is created in the sysfs
203 * directory for this struct class device. 204 * directory for this struct class device.
204 * @class_data: pointer to whatever you want to store here for this struct 205 * @class_data: pointer to whatever you want to store here for this struct
@@ -227,6 +228,7 @@ struct class_device {
227 struct device * dev; /* not necessary, but nice to have */ 228 struct device * dev; /* not necessary, but nice to have */
228 void * class_data; /* class-specific data */ 229 void * class_data; /* class-specific data */
229 struct class_device *parent; /* parent of this child device, if there is one */ 230 struct class_device *parent; /* parent of this child device, if there is one */
231 struct attribute_group ** groups; /* optional groups */
230 232
231 void (*release)(struct class_device *dev); 233 void (*release)(struct class_device *dev);
232 int (*uevent)(struct class_device *dev, char **envp, 234 int (*uevent)(struct class_device *dev, char **envp,