[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(-)
This commit is contained in:
@@ -576,10 +576,8 @@ extern struct bus_type usb_bus_type;
|
||||
|
||||
/**
|
||||
* struct usb_class_driver - identifies a USB driver that wants to use the USB major number
|
||||
* @name: devfs name for this driver. Will also be used by the driver
|
||||
* class code to create a usb class device.
|
||||
* @name: the usb class device name for this driver. Will show up in sysfs.
|
||||
* @fops: pointer to the struct file_operations of this driver.
|
||||
* @mode: the mode for the devfs file to be created for this driver.
|
||||
* @minor_base: the start of the minor range for this driver.
|
||||
*
|
||||
* This structure is used for the usb_register_dev() and
|
||||
@@ -589,8 +587,7 @@ extern struct bus_type usb_bus_type;
|
||||
struct usb_class_driver {
|
||||
char *name;
|
||||
struct file_operations *fops;
|
||||
mode_t mode;
|
||||
int minor_base;
|
||||
int minor_base;
|
||||
};
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user