From 552b99381a4f14c31e77cbe74ff3a06532cae904 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Mon, 19 Jan 2004 00:41:53 -0800 Subject: [PATCH] MISC: add sysfs class support for misc devices This adds class/misc/ for all misc devices (ones that use the misc_register() function). --- include/linux/miscdevice.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/linux') 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]; }; -- cgit v1.2.3