summaryrefslogtreecommitdiff
path: root/include/linux/device.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2006-09-19 20:39:19 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-09-26 08:08:39 +0400
commit2589f1887b0bf9f08ec3d7f3c5705ccb7c628076 (patch)
tree172fcb59cf5a8b500aafe905a690ea4b439277c4 /include/linux/device.h
parentc47ed219ba81632595e9f02e27318151fec16c9e (diff)
downloadlinux-2589f1887b0bf9f08ec3d7f3c5705ccb7c628076.tar.xz
Driver core: add ability for devices to create and remove bin files
Makes it easier for devices to create and remove binary attribute files so they don't have to call directly into sysfs. This is needed to help with the conversion from struct class_device to struct device. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/device.h')
-rw-r--r--include/linux/device.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index e0fae0e76fa9..7d447d7271c5 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -309,6 +309,10 @@ struct device_attribute dev_attr_##_name = __ATTR(_name,_mode,_show,_store)
extern int device_create_file(struct device *device, struct device_attribute * entry);
extern void device_remove_file(struct device * dev, struct device_attribute * attr);
+extern int __must_check device_create_bin_file(struct device *dev,
+ struct bin_attribute *attr);
+extern void device_remove_bin_file(struct device *dev,
+ struct bin_attribute *attr);
struct device {
struct klist klist_children;
struct klist_node knode_parent; /* node in sibling list */