diff options
author | Peter Chubb <peterc@gelato.unsw.edu.au> | 2006-05-02 13:29:34 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-06-21 18:04:10 -0400 |
commit | bdcfd9e349eff9398a1d85eaa517294f493bb3c8 (patch) | |
tree | 62a8804e6ff6559a0de1f09021c9f8cccaf11cf5 /drivers/usb/storage/shuttle_usbat.h | |
parent | 141804d401631f0384feabfa5fc3e2ce1321c0f0 (diff) |
[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>
Diffstat (limited to 'drivers/usb/storage/shuttle_usbat.h')
-rw-r--r-- | drivers/usb/storage/shuttle_usbat.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/storage/shuttle_usbat.h b/drivers/usb/storage/shuttle_usbat.h index 25e7d8b340b8..3ddf143a1dec 100644 --- a/drivers/usb/storage/shuttle_usbat.h +++ b/drivers/usb/storage/shuttle_usbat.h | |||
@@ -106,7 +106,9 @@ | |||
106 | #define USBAT_FEAT_ET2 0x01 | 106 | #define USBAT_FEAT_ET2 0x01 |
107 | 107 | ||
108 | extern int usbat_transport(struct scsi_cmnd *srb, struct us_data *us); | 108 | extern int usbat_transport(struct scsi_cmnd *srb, struct us_data *us); |
109 | extern int init_usbat(struct us_data *us); | 109 | extern int init_usbat_cd(struct us_data *us); |
110 | extern int init_usbat_flash(struct us_data *us); | ||
111 | extern int init_usbat_probe(struct us_data *us); | ||
110 | 112 | ||
111 | struct usbat_info { | 113 | struct usbat_info { |
112 | int devicetype; | 114 | int devicetype; |