[PATCH] USB: shuttle_usbat: Hardcode detection of HP CDRW devices
Use USB vendor and product IDs to determine whether the attached device is a CDROM or a Flash device. Daniel Drake says that the *same* vendor and product IDs for non-HP vendor ID could be either flash or cdrom, so try to probe for them. Signed-off-by: Peter Chubb <peterc@gelato.unsw.edu.au> Signed-off-by: Daniel Drake <dsd@gentoo.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
141804d401
commit
bdcfd9e349
@@ -106,7 +106,9 @@
|
||||
#define USBAT_FEAT_ET2 0x01
|
||||
|
||||
extern int usbat_transport(struct scsi_cmnd *srb, struct us_data *us);
|
||||
extern int init_usbat(struct us_data *us);
|
||||
extern int init_usbat_cd(struct us_data *us);
|
||||
extern int init_usbat_flash(struct us_data *us);
|
||||
extern int init_usbat_probe(struct us_data *us);
|
||||
|
||||
struct usbat_info {
|
||||
int devicetype;
|
||||
|
Reference in New Issue
Block a user