summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <greg@kroah.com>2004-01-19 00:41:53 -0800
committerGreg Kroah-Hartman <greg@kroah.com>2004-01-19 00:41:53 -0800
commit552b99381a4f14c31e77cbe74ff3a06532cae904 (patch)
tree389f798cb3b6578839d7c7c45a875de6cfc11f4b /include/linux
parent6cba9612be9de7105868ad912c61deb69316bc34 (diff)
[PATCH] MISC: add sysfs class support for misc devices
This adds class/misc/ for all misc devices (ones that use the misc_register() function).
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/miscdevice.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/miscdevice.h b/include/linux/miscdevice.h
index 6b7f9c1fa5cd..98f61665d4c2 100644
--- a/include/linux/miscdevice.h
+++ b/include/linux/miscdevice.h
@@ -36,12 +36,15 @@
#define TUN_MINOR 200
+struct device;
+
struct miscdevice
{
int minor;
const char *name;
struct file_operations *fops;
struct list_head list;
+ struct device *dev;
char devfs_name[64];
};