aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/Kconfig
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2008-10-15 19:18:54 -0400
committerJiri Kosina <jkosina@suse.cz>2008-10-15 19:18:54 -0400
commitb36299bcc0feae4c1bcff6a1561b8beb635e9c80 (patch)
tree4f0734921dfe19abac29953090db6751dccd94f9 /drivers/hid/Kconfig
parent278429cff8809958d25415ba0ed32b59866ab1a8 (diff)
HID: fix default building of HID-quirk drivers
Commit 9be7bbd54df3c9c393ccd19acc49f90c517d1291 (HID: build drivers for all quirky devices by default) made a wrong assumption about select/depends interaction in Kconfig, resulting in possibility of link failure with certain configuration options. Fix this by explicitly having all the quirk-drivers depend on USB_HID, default to y and make the possibility to alter the settings dependent on EBMEDDED. Reported-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/Kconfig')
-rw-r--r--drivers/hid/Kconfig91
1 files changed, 36 insertions, 55 deletions
diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig
index da64108de775..d044df5e3bc2 100644
--- a/drivers/hid/Kconfig
+++ b/drivers/hid/Kconfig
@@ -17,25 +17,6 @@ config HID
17 tristate "Generic HID support" 17 tristate "Generic HID support"
18 depends on INPUT 18 depends on INPUT
19 default y 19 default y
20 select HID_A4TECH if !EMBEDDED
21 select HID_APPLE if !EMBEDDED
22 select HID_BELKIN if !EMBEDDED
23 select HID_BRIGHT if !EMBEDDED
24 select HID_CHERRY if !EMBEDDED
25 select HID_CHICONY if !EMBEDDED
26 select HID_CYPRESS if !EMBEDDED
27 select HID_DELL if !EMBEDDED
28 select HID_EZKEY if !EMBEDDED
29 select HID_GYRATION if !EMBEDDED
30 select HID_LOGITECH if !EMBEDDED
31 select HID_MICROSOFT if !EMBEDDED
32 select HID_MONTEREY if !EMBEDDED
33 select HID_PANTHERLORD if !EMBEDDED
34 select HID_PETALYNX if !EMBEDDED
35 select HID_SAMSUNG if !EMBEDDED
36 select HID_SONY if !EMBEDDED
37 select HID_SUNPLUS if !EMBEDDED
38
39 ---help--- 20 ---help---
40 A human interface device (HID) is a type of computer device that 21 A human interface device (HID) is a type of computer device that
41 interacts directly with and takes input from humans. The term "HID" 22 interacts directly with and takes input from humans. The term "HID"
@@ -102,16 +83,16 @@ config HID_COMPAT
102 If unsure, say Y. 83 If unsure, say Y.
103 84
104config HID_A4TECH 85config HID_A4TECH
105 tristate "A4 tech" 86 tristate "A4 tech" if EMBEDDED
106 default m
107 depends on USB_HID 87 depends on USB_HID
88 default y
108 ---help--- 89 ---help---
109 Support for A4 tech X5 and WOP-35 / Trust 450L mice. 90 Support for A4 tech X5 and WOP-35 / Trust 450L mice.
110 91
111config HID_APPLE 92config HID_APPLE
112 tristate "Apple" 93 tristate "Apple" if EMBEDDED
113 default m
114 depends on (USB_HID || BT_HIDP) 94 depends on (USB_HID || BT_HIDP)
95 default y
115 ---help--- 96 ---help---
116 Support for some Apple devices which less or more break 97 Support for some Apple devices which less or more break
117 HID specification. 98 HID specification.
@@ -123,65 +104,65 @@ config HID_APPLE
123 If unsure, say M. 104 If unsure, say M.
124 105
125config HID_BELKIN 106config HID_BELKIN
126 tristate "Belkin" 107 tristate "Belkin" if EMBEDDED
127 default m
128 depends on USB_HID 108 depends on USB_HID
109 default y
129 ---help--- 110 ---help---
130 Support for Belkin Flip KVM and Wireless keyboard. 111 Support for Belkin Flip KVM and Wireless keyboard.
131 112
132config HID_BRIGHT 113config HID_BRIGHT
133 tristate "Bright" 114 tristate "Bright" if EMBEDDED
134 default m
135 depends on USB_HID 115 depends on USB_HID
116 default y
136 ---help--- 117 ---help---
137 Support for Bright ABNT-2 keyboard. 118 Support for Bright ABNT-2 keyboard.
138 119
139config HID_CHERRY 120config HID_CHERRY
140 tristate "Cherry" 121 tristate "Cherry" if EMBEDDED
141 default m
142 depends on USB_HID 122 depends on USB_HID
123 default y
143 ---help--- 124 ---help---
144 Support for Cherry Cymotion. 125 Support for Cherry Cymotion.
145 126
146config HID_CHICONY 127config HID_CHICONY
147 tristate "Chicony" 128 tristate "Chicony" if EMBEDDED
148 default m
149 depends on USB_HID 129 depends on USB_HID
130 default y
150 ---help--- 131 ---help---
151 Support for Chicony Tactical pad. 132 Support for Chicony Tactical pad.
152 133
153config HID_CYPRESS 134config HID_CYPRESS
154 tristate "Cypress" 135 tristate "Cypress" if EMBEDDED
155 default m
156 depends on USB_HID 136 depends on USB_HID
137 default y
157 ---help--- 138 ---help---
158 Support for Cypress mouse and barcodes. 139 Support for Cypress mouse and barcodes.
159 140
160config HID_DELL 141config HID_DELL
161 tristate "Dell" 142 tristate "Dell" if EMBEDDED
162 default m
163 depends on USB_HID 143 depends on USB_HID
144 default y
164 ---help--- 145 ---help---
165 Support for Dell W7658. 146 Support for Dell W7658.
166 147
167config HID_EZKEY 148config HID_EZKEY
168 tristate "Ezkey" 149 tristate "Ezkey" if EMBEDDED
169 default m
170 depends on USB_HID 150 depends on USB_HID
151 default y
171 ---help--- 152 ---help---
172 Support for Ezkey mouse and barcodes. 153 Support for Ezkey mouse and barcodes.
173 154
174config HID_GYRATION 155config HID_GYRATION
175 tristate "Gyration" 156 tristate "Gyration" if EMBEDDED
176 default m
177 depends on USB_HID 157 depends on USB_HID
158 default y
178 ---help--- 159 ---help---
179 Support for Gyration remote. 160 Support for Gyration remote.
180 161
181config HID_LOGITECH 162config HID_LOGITECH
182 tristate "Logitech" 163 tristate "Logitech" if EMBEDDED
183 default m
184 depends on USB_HID 164 depends on USB_HID
165 default y
185 ---help--- 166 ---help---
186 Support for some Logitech devices which breaks less or more 167 Support for some Logitech devices which breaks less or more
187 HID specification. 168 HID specification.
@@ -211,24 +192,24 @@ config LOGIRUMBLEPAD2_FF
211 Rumblepad 2 devices. 192 Rumblepad 2 devices.
212 193
213config HID_MICROSOFT 194config HID_MICROSOFT
214 tristate "Microsoft" 195 tristate "Microsoft" if EMBEDDED
215 default m
216 depends on USB_HID 196 depends on USB_HID
197 default y
217 ---help--- 198 ---help---
218 Support for some Microsoft devices which breaks less or more 199 Support for some Microsoft devices which breaks less or more
219 HID specification. 200 HID specification.
220 201
221config HID_MONTEREY 202config HID_MONTEREY
222 tristate "Monterey" 203 tristate "Monterey" if EMBEDDED
223 default m
224 depends on USB_HID 204 depends on USB_HID
205 default y
225 ---help--- 206 ---help---
226 Support for Monterey Genius KB29E. 207 Support for Monterey Genius KB29E.
227 208
228config HID_PANTHERLORD 209config HID_PANTHERLORD
229 tristate "Pantherlord devices support" 210 tristate "Pantherlord devices support" if EMBEDDED
230 default m
231 depends on USB_HID 211 depends on USB_HID
212 default y
232 ---help--- 213 ---help---
233 Support for PantherLord/GreenAsia based device support. 214 Support for PantherLord/GreenAsia based device support.
234 215
@@ -242,30 +223,30 @@ config PANTHERLORD_FF
242 or adapter and want to enable force feedback support for it. 223 or adapter and want to enable force feedback support for it.
243 224
244config HID_PETALYNX 225config HID_PETALYNX
245 tristate "Petalynx" 226 tristate "Petalynx" if EMBEDDED
246 default m
247 depends on USB_HID 227 depends on USB_HID
228 default y
248 ---help--- 229 ---help---
249 Support for Petalynx Maxter remote. 230 Support for Petalynx Maxter remote.
250 231
251config HID_SAMSUNG 232config HID_SAMSUNG
252 tristate "Samsung" 233 tristate "Samsung" if EMBEDDED
253 default m
254 depends on USB_HID 234 depends on USB_HID
235 default y
255 ---help--- 236 ---help---
256 Support for Samsung IR remote. 237 Support for Samsung IR remote.
257 238
258config HID_SONY 239config HID_SONY
259 tristate "Sony" 240 tristate "Sony" if EMBEDDED
260 default m
261 depends on USB_HID 241 depends on USB_HID
242 default y
262 ---help--- 243 ---help---
263 Support for Sony PS3 controller. 244 Support for Sony PS3 controller.
264 245
265config HID_SUNPLUS 246config HID_SUNPLUS
266 tristate "Sunplus" 247 tristate "Sunplus" if EMBEDDED
267 default m
268 depends on USB_HID 248 depends on USB_HID
249 default y
269 ---help--- 250 ---help---
270 Support for Sunplus WDesktop input device. 251 Support for Sunplus WDesktop input device.
271 252