aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladimir Zapolskiy <vz@mleia.com>2018-08-09 11:30:13 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-10 14:01:04 -0400
commitd1e348491a72c4118a1838377393349d780b2717 (patch)
tree6b4e66472bd7054bed1d62d0d6b04065220244c7
parent71741bd6776aff40bc6e57d458a65d7e41190274 (diff)
usb storage: group dependent USB storage Kconfig entries together
Instead of explicit setting of USB_STORAGE dependency for every underlying build entries, exploit if USB_STORAGE / endif block. The change is a trivial non-functional cleanup, it shortens the Kconfig file and it is expected to reduce zconf parser workload a little. Dependencies of USB_UAS build option are left aside deliberately. Signed-off-by: Vladimir Zapolskiy <vz@mleia.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/storage/Kconfig18
1 files changed, 4 insertions, 14 deletions
diff --git a/drivers/usb/storage/Kconfig b/drivers/usb/storage/Kconfig
index ec84758f0e23..8d7d76439f77 100644
--- a/drivers/usb/storage/Kconfig
+++ b/drivers/usb/storage/Kconfig
@@ -23,16 +23,16 @@ config USB_STORAGE
23 To compile this driver as a module, choose M here: the 23 To compile this driver as a module, choose M here: the
24 module will be called usb-storage. 24 module will be called usb-storage.
25 25
26if USB_STORAGE
27
26config USB_STORAGE_DEBUG 28config USB_STORAGE_DEBUG
27 bool "USB Mass Storage verbose debug" 29 bool "USB Mass Storage verbose debug"
28 depends on USB_STORAGE
29 help 30 help
30 Say Y here in order to have the USB Mass Storage code generate 31 Say Y here in order to have the USB Mass Storage code generate
31 verbose debugging messages. 32 verbose debugging messages.
32 33
33config USB_STORAGE_REALTEK 34config USB_STORAGE_REALTEK
34 tristate "Realtek Card Reader support" 35 tristate "Realtek Card Reader support"
35 depends on USB_STORAGE
36 help 36 help
37 Say Y here to include additional code to support the power-saving function 37 Say Y here to include additional code to support the power-saving function
38 for Realtek RTS51xx USB card readers. 38 for Realtek RTS51xx USB card readers.
@@ -46,7 +46,6 @@ config REALTEK_AUTOPM
46 46
47config USB_STORAGE_DATAFAB 47config USB_STORAGE_DATAFAB
48 tristate "Datafab Compact Flash Reader support" 48 tristate "Datafab Compact Flash Reader support"
49 depends on USB_STORAGE
50 help 49 help
51 Support for certain Datafab CompactFlash readers. 50 Support for certain Datafab CompactFlash readers.
52 Datafab has a web page at <http://www.datafab.com/>. 51 Datafab has a web page at <http://www.datafab.com/>.
@@ -55,7 +54,6 @@ config USB_STORAGE_DATAFAB
55 54
56config USB_STORAGE_FREECOM 55config USB_STORAGE_FREECOM
57 tristate "Freecom USB/ATAPI Bridge support" 56 tristate "Freecom USB/ATAPI Bridge support"
58 depends on USB_STORAGE
59 help 57 help
60 Support for the Freecom USB to IDE/ATAPI adaptor. 58 Support for the Freecom USB to IDE/ATAPI adaptor.
61 Freecom has a web page at <http://www.freecom.de/>. 59 Freecom has a web page at <http://www.freecom.de/>.
@@ -64,7 +62,6 @@ config USB_STORAGE_FREECOM
64 62
65config USB_STORAGE_ISD200 63config USB_STORAGE_ISD200
66 tristate "ISD-200 USB/ATA Bridge support" 64 tristate "ISD-200 USB/ATA Bridge support"
67 depends on USB_STORAGE
68 ---help--- 65 ---help---
69 Say Y here if you want to use USB Mass Store devices based 66 Say Y here if you want to use USB Mass Store devices based
70 on the In-Systems Design ISD-200 USB/ATA bridge. 67 on the In-Systems Design ISD-200 USB/ATA bridge.
@@ -82,7 +79,6 @@ config USB_STORAGE_ISD200
82 79
83config USB_STORAGE_USBAT 80config USB_STORAGE_USBAT
84 tristate "USBAT/USBAT02-based storage support" 81 tristate "USBAT/USBAT02-based storage support"
85 depends on USB_STORAGE
86 help 82 help
87 Say Y here to include additional code to support storage devices 83 Say Y here to include additional code to support storage devices
88 based on the SCM/Shuttle USBAT/USBAT02 processors. 84 based on the SCM/Shuttle USBAT/USBAT02 processors.
@@ -105,7 +101,6 @@ config USB_STORAGE_USBAT
105 101
106config USB_STORAGE_SDDR09 102config USB_STORAGE_SDDR09
107 tristate "SanDisk SDDR-09 (and other SmartMedia, including DPCM) support" 103 tristate "SanDisk SDDR-09 (and other SmartMedia, including DPCM) support"
108 depends on USB_STORAGE
109 help 104 help
110 Say Y here to include additional code to support the Sandisk SDDR-09 105 Say Y here to include additional code to support the Sandisk SDDR-09
111 SmartMedia reader in the USB Mass Storage driver. 106 SmartMedia reader in the USB Mass Storage driver.
@@ -115,7 +110,6 @@ config USB_STORAGE_SDDR09
115 110
116config USB_STORAGE_SDDR55 111config USB_STORAGE_SDDR55
117 tristate "SanDisk SDDR-55 SmartMedia support" 112 tristate "SanDisk SDDR-55 SmartMedia support"
118 depends on USB_STORAGE
119 help 113 help
120 Say Y here to include additional code to support the Sandisk SDDR-55 114 Say Y here to include additional code to support the Sandisk SDDR-55
121 SmartMedia reader in the USB Mass Storage driver. 115 SmartMedia reader in the USB Mass Storage driver.
@@ -124,7 +118,6 @@ config USB_STORAGE_SDDR55
124 118
125config USB_STORAGE_JUMPSHOT 119config USB_STORAGE_JUMPSHOT
126 tristate "Lexar Jumpshot Compact Flash Reader" 120 tristate "Lexar Jumpshot Compact Flash Reader"
127 depends on USB_STORAGE
128 help 121 help
129 Say Y here to include additional code to support the Lexar Jumpshot 122 Say Y here to include additional code to support the Lexar Jumpshot
130 USB CompactFlash reader. 123 USB CompactFlash reader.
@@ -133,7 +126,6 @@ config USB_STORAGE_JUMPSHOT
133 126
134config USB_STORAGE_ALAUDA 127config USB_STORAGE_ALAUDA
135 tristate "Olympus MAUSB-10/Fuji DPC-R1 support" 128 tristate "Olympus MAUSB-10/Fuji DPC-R1 support"
136 depends on USB_STORAGE
137 help 129 help
138 Say Y here to include additional code to support the Olympus MAUSB-10 130 Say Y here to include additional code to support the Olympus MAUSB-10
139 and Fujifilm DPC-R1 USB Card reader/writer devices. 131 and Fujifilm DPC-R1 USB Card reader/writer devices.
@@ -145,7 +137,6 @@ config USB_STORAGE_ALAUDA
145 137
146config USB_STORAGE_ONETOUCH 138config USB_STORAGE_ONETOUCH
147 tristate "Support OneTouch Button on Maxtor Hard Drives" 139 tristate "Support OneTouch Button on Maxtor Hard Drives"
148 depends on USB_STORAGE
149 depends on INPUT=y || INPUT=USB_STORAGE 140 depends on INPUT=y || INPUT=USB_STORAGE
150 help 141 help
151 Say Y here to include additional code to support the Maxtor OneTouch 142 Say Y here to include additional code to support the Maxtor OneTouch
@@ -160,7 +151,6 @@ config USB_STORAGE_ONETOUCH
160 151
161config USB_STORAGE_KARMA 152config USB_STORAGE_KARMA
162 tristate "Support for Rio Karma music player" 153 tristate "Support for Rio Karma music player"
163 depends on USB_STORAGE
164 help 154 help
165 Say Y here to include additional code to support the Rio Karma 155 Say Y here to include additional code to support the Rio Karma
166 USB interface. 156 USB interface.
@@ -174,7 +164,6 @@ config USB_STORAGE_KARMA
174 164
175config USB_STORAGE_CYPRESS_ATACB 165config USB_STORAGE_CYPRESS_ATACB
176 tristate "SAT emulation on Cypress USB/ATA Bridge with ATACB" 166 tristate "SAT emulation on Cypress USB/ATA Bridge with ATACB"
177 depends on USB_STORAGE
178 ---help--- 167 ---help---
179 Say Y here if you want to use SAT (ata pass through) on devices based 168 Say Y here if you want to use SAT (ata pass through) on devices based
180 on the Cypress USB/ATA bridge supporting ATACB. This will allow you 169 on the Cypress USB/ATA bridge supporting ATACB. This will allow you
@@ -188,7 +177,6 @@ config USB_STORAGE_CYPRESS_ATACB
188config USB_STORAGE_ENE_UB6250 177config USB_STORAGE_ENE_UB6250
189 tristate "USB ENE card reader support" 178 tristate "USB ENE card reader support"
190 depends on SCSI 179 depends on SCSI
191 depends on USB_STORAGE
192 ---help--- 180 ---help---
193 Say Y here if you wish to control a ENE SD/MS Card reader. 181 Say Y here if you wish to control a ENE SD/MS Card reader.
194 Note that this driver does not support SM cards. 182 Note that this driver does not support SM cards.
@@ -200,6 +188,8 @@ config USB_STORAGE_ENE_UB6250
200 To compile this driver as a module, choose M here: the 188 To compile this driver as a module, choose M here: the
201 module will be called ums-eneub6250. 189 module will be called ums-eneub6250.
202 190
191endif # USB_STORAGE
192
203config USB_UAS 193config USB_UAS
204 tristate "USB Attached SCSI" 194 tristate "USB Attached SCSI"
205 depends on SCSI && USB_STORAGE 195 depends on SCSI && USB_STORAGE