diff options
Diffstat (limited to 'drivers/usb/storage/ene_ub6250.c')
-rw-r--r-- | drivers/usb/storage/ene_ub6250.c | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/drivers/usb/storage/ene_ub6250.c b/drivers/usb/storage/ene_ub6250.c index b28f2ad127d4..118b134a1dad 100644 --- a/drivers/usb/storage/ene_ub6250.c +++ b/drivers/usb/storage/ene_ub6250.c | |||
@@ -29,9 +29,21 @@ | |||
29 | #include "protocol.h" | 29 | #include "protocol.h" |
30 | #include "debug.h" | 30 | #include "debug.h" |
31 | 31 | ||
32 | #define SD_INIT1_FIRMWARE "ene-ub6250/sd_init1.bin" | ||
33 | #define SD_INIT2_FIRMWARE "ene-ub6250/sd_init2.bin" | ||
34 | #define SD_RW_FIRMWARE "ene-ub6250/sd_rdwr.bin" | ||
35 | #define MS_INIT_FIRMWARE "ene-ub6250/ms_init.bin" | ||
36 | #define MSP_RW_FIRMWARE "ene-ub6250/msp_rdwr.bin" | ||
37 | #define MS_RW_FIRMWARE "ene-ub6250/ms_rdwr.bin" | ||
38 | |||
32 | MODULE_DESCRIPTION("Driver for ENE UB6250 reader"); | 39 | MODULE_DESCRIPTION("Driver for ENE UB6250 reader"); |
33 | MODULE_LICENSE("GPL"); | 40 | MODULE_LICENSE("GPL"); |
34 | 41 | MODULE_FIRMWARE(SD_INIT1_FIRMWARE); | |
42 | MODULE_FIRMWARE(SD_INIT2_FIRMWARE); | ||
43 | MODULE_FIRMWARE(SD_RW_FIRMWARE); | ||
44 | MODULE_FIRMWARE(MS_INIT_FIRMWARE); | ||
45 | MODULE_FIRMWARE(MSP_RW_FIRMWARE); | ||
46 | MODULE_FIRMWARE(MS_RW_FIRMWARE); | ||
35 | 47 | ||
36 | /* | 48 | /* |
37 | * The table of devices | 49 | * The table of devices |
@@ -40,7 +52,7 @@ MODULE_LICENSE("GPL"); | |||
40 | vendorName, productName, useProtocol, useTransport, \ | 52 | vendorName, productName, useProtocol, useTransport, \ |
41 | initFunction, flags) \ | 53 | initFunction, flags) \ |
42 | { USB_DEVICE_VER(id_vendor, id_product, bcdDeviceMin, bcdDeviceMax), \ | 54 | { USB_DEVICE_VER(id_vendor, id_product, bcdDeviceMin, bcdDeviceMax), \ |
43 | .driver_info = (flags)|(USB_US_TYPE_STOR<<24) } | 55 | .driver_info = (flags)} |
44 | 56 | ||
45 | static struct usb_device_id ene_ub6250_usb_ids[] = { | 57 | static struct usb_device_id ene_ub6250_usb_ids[] = { |
46 | # include "unusual_ene_ub6250.h" | 58 | # include "unusual_ene_ub6250.h" |
@@ -1883,28 +1895,28 @@ static int ene_load_bincode(struct us_data *us, unsigned char flag) | |||
1883 | /* For SD */ | 1895 | /* For SD */ |
1884 | case SD_INIT1_PATTERN: | 1896 | case SD_INIT1_PATTERN: |
1885 | US_DEBUGP("SD_INIT1_PATTERN\n"); | 1897 | US_DEBUGP("SD_INIT1_PATTERN\n"); |
1886 | fw_name = "ene-ub6250/sd_init1.bin"; | 1898 | fw_name = SD_INIT1_FIRMWARE; |
1887 | break; | 1899 | break; |
1888 | case SD_INIT2_PATTERN: | 1900 | case SD_INIT2_PATTERN: |
1889 | US_DEBUGP("SD_INIT2_PATTERN\n"); | 1901 | US_DEBUGP("SD_INIT2_PATTERN\n"); |
1890 | fw_name = "ene-ub6250/sd_init2.bin"; | 1902 | fw_name = SD_INIT2_FIRMWARE; |
1891 | break; | 1903 | break; |
1892 | case SD_RW_PATTERN: | 1904 | case SD_RW_PATTERN: |
1893 | US_DEBUGP("SD_RDWR_PATTERN\n"); | 1905 | US_DEBUGP("SD_RW_PATTERN\n"); |
1894 | fw_name = "ene-ub6250/sd_rdwr.bin"; | 1906 | fw_name = SD_RW_FIRMWARE; |
1895 | break; | 1907 | break; |
1896 | /* For MS */ | 1908 | /* For MS */ |
1897 | case MS_INIT_PATTERN: | 1909 | case MS_INIT_PATTERN: |
1898 | US_DEBUGP("MS_INIT_PATTERN\n"); | 1910 | US_DEBUGP("MS_INIT_PATTERN\n"); |
1899 | fw_name = "ene-ub6250/ms_init.bin"; | 1911 | fw_name = MS_INIT_FIRMWARE; |
1900 | break; | 1912 | break; |
1901 | case MSP_RW_PATTERN: | 1913 | case MSP_RW_PATTERN: |
1902 | US_DEBUGP("MSP_RW_PATTERN\n"); | 1914 | US_DEBUGP("MSP_RW_PATTERN\n"); |
1903 | fw_name = "ene-ub6250/msp_rdwr.bin"; | 1915 | fw_name = MSP_RW_FIRMWARE; |
1904 | break; | 1916 | break; |
1905 | case MS_RW_PATTERN: | 1917 | case MS_RW_PATTERN: |
1906 | US_DEBUGP("MS_RW_PATTERN\n"); | 1918 | US_DEBUGP("MS_RW_PATTERN\n"); |
1907 | fw_name = "ene-ub6250/ms_rdwr.bin"; | 1919 | fw_name = MS_RW_FIRMWARE; |
1908 | break; | 1920 | break; |
1909 | default: | 1921 | default: |
1910 | US_DEBUGP("----------- Unknown PATTERN ----------\n"); | 1922 | US_DEBUGP("----------- Unknown PATTERN ----------\n"); |