diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-21 00:15:16 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-10-28 19:47:37 -0400 |
commit | d6e5bcf4a7ebbe258124a931f1449338340a99b5 (patch) | |
tree | e36249673c11e20f90ad837831c104b1dfce9947 /include/linux/usb.h | |
parent | 094f1649577dfc7f2c7407a8380e05a506b31f7f (diff) |
[PATCH] devfs: Remove the mode field from usb_class_driver as it's no longer needed
Also fixes all drivers that set this field, and removes some other devfs
specfic USB logic.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/class/usblp.c | 3 +--
drivers/usb/core/file.c | 19 ++++---------------
drivers/usb/image/mdc800.c | 3 +--
drivers/usb/input/aiptek.c | 2 +-
drivers/usb/input/hiddev.c | 3 +--
drivers/usb/media/dabusb.c | 3 +--
drivers/usb/misc/auerswald.c | 3 +--
drivers/usb/misc/idmouse.c | 5 ++---
drivers/usb/misc/legousbtower.c | 5 ++---
drivers/usb/misc/rio500.c | 3 +--
drivers/usb/misc/sisusbvga/sisusb.c | 5 -----
drivers/usb/misc/usblcd.c | 9 ++++-----
drivers/usb/usb-skeleton.c | 3 +--
include/linux/usb.h | 7 ++-----
14 files changed, 22 insertions(+), 51 deletions(-)
Diffstat (limited to 'include/linux/usb.h')
-rw-r--r-- | include/linux/usb.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h index 4512210e97e7..04502e183dd1 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h | |||
@@ -576,10 +576,8 @@ extern struct bus_type usb_bus_type; | |||
576 | 576 | ||
577 | /** | 577 | /** |
578 | * struct usb_class_driver - identifies a USB driver that wants to use the USB major number | 578 | * struct usb_class_driver - identifies a USB driver that wants to use the USB major number |
579 | * @name: devfs name for this driver. Will also be used by the driver | 579 | * @name: the usb class device name for this driver. Will show up in sysfs. |
580 | * class code to create a usb class device. | ||
581 | * @fops: pointer to the struct file_operations of this driver. | 580 | * @fops: pointer to the struct file_operations of this driver. |
582 | * @mode: the mode for the devfs file to be created for this driver. | ||
583 | * @minor_base: the start of the minor range for this driver. | 581 | * @minor_base: the start of the minor range for this driver. |
584 | * | 582 | * |
585 | * This structure is used for the usb_register_dev() and | 583 | * This structure is used for the usb_register_dev() and |
@@ -589,8 +587,7 @@ extern struct bus_type usb_bus_type; | |||
589 | struct usb_class_driver { | 587 | struct usb_class_driver { |
590 | char *name; | 588 | char *name; |
591 | struct file_operations *fops; | 589 | struct file_operations *fops; |
592 | mode_t mode; | 590 | int minor_base; |
593 | int minor_base; | ||
594 | }; | 591 | }; |
595 | 592 | ||
596 | /* | 593 | /* |