diff options
author | Bruno Prémont <bonbons@linux-vserver.org> | 2010-04-11 06:17:45 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-04-11 14:26:46 -0400 |
commit | 5435f2818ea08bcb381dcd2a99b1607b2a42f329 (patch) | |
tree | 493f43cc5458e494a45d28ff776eea40880cb6c3 /drivers/hid/Kconfig | |
parent | eb741103f17a19fccf7c795ed1d9662196acc6e5 (diff) |
HID: hid-picolcd depends on LCD_CLASS_DEVICE
HID_PICOLCD should depend on LCD_CLASS_DEVICE, otherwise the
build fails when HID_PICOLCD=y and LCD_CLASS_DEVICE=m:
hid-picolcd.c:(.text+0x84523f): undefined reference to `lcd_device_unregister'
hid-picolcd.c:(.text+0x8478ab): undefined reference to `lcd_device_register'
hid-picolcd.c:(.text+0x84c15f): undefined reference to `lcd_device_unregister'
Same applies to FB, BACKLIGHT_CLASS_DEVICE and LEDS_CLASS.
Add suboptions for those features to handle the deps on kbuild side
and just check HID_PICOLCD_* in the code.
Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Bruno Prémont <bonbons@linux-vserver.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/Kconfig')
-rw-r--r-- | drivers/hid/Kconfig | 53 |
1 files changed, 44 insertions, 9 deletions
diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index a2ecd83bfe89..0e8aa63e3f55 100644 --- a/drivers/hid/Kconfig +++ b/drivers/hid/Kconfig | |||
@@ -265,11 +265,6 @@ config HID_PETALYNX | |||
265 | config HID_PICOLCD | 265 | config HID_PICOLCD |
266 | tristate "PicoLCD (graphic version)" | 266 | tristate "PicoLCD (graphic version)" |
267 | depends on USB_HID | 267 | depends on USB_HID |
268 | select FB_DEFERRED_IO if FB | ||
269 | select FB_SYS_FILLRECT if FB | ||
270 | select FB_SYS_COPYAREA if FB | ||
271 | select FB_SYS_IMAGEBLIT if FB | ||
272 | select FB_SYS_FOPS if FB | ||
273 | ---help--- | 268 | ---help--- |
274 | This provides support for Minibox PicoLCD devices, currently | 269 | This provides support for Minibox PicoLCD devices, currently |
275 | only the graphical ones are supported. | 270 | only the graphical ones are supported. |
@@ -277,14 +272,54 @@ config HID_PICOLCD | |||
277 | This includes support for the following device features: | 272 | This includes support for the following device features: |
278 | - Keypad | 273 | - Keypad |
279 | - Switching between Firmware and Flash mode | 274 | - Switching between Firmware and Flash mode |
280 | - Framebuffer for monochrome 256x64 display | ||
281 | - Backlight control (needs CONFIG_BACKLIGHT_CLASS_DEVICE) | ||
282 | - Contrast control (needs CONFIG_LCD_CLASS_DEVICE) | ||
283 | - General purpose outputs (needs CONFIG_LEDS_CLASS) | ||
284 | - EEProm / Flash access (via debugfs) | 275 | - EEProm / Flash access (via debugfs) |
276 | Features selectively enabled: | ||
277 | - Framebuffer for monochrome 256x64 display | ||
278 | - Backlight control | ||
279 | - Contrast control | ||
280 | - General purpose outputs | ||
285 | Features that are not (yet) supported: | 281 | Features that are not (yet) supported: |
286 | - IR | 282 | - IR |
287 | 283 | ||
284 | config HID_PICOLCD_FB | ||
285 | bool "Framebuffer support" if EMBEDDED | ||
286 | default !EMBEDDED | ||
287 | depends on HID_PICOLCD | ||
288 | depends on HID_PICOLCD=FB || FB=y | ||
289 | select FB_DEFERRED_IO | ||
290 | select FB_SYS_FILLRECT | ||
291 | select FB_SYS_COPYAREA | ||
292 | select FB_SYS_IMAGEBLIT | ||
293 | select FB_SYS_FOPS | ||
294 | ---help--- | ||
295 | Provide access to PicoLCD's 256x64 monochrome display via a | ||
296 | frambuffer device. | ||
297 | |||
298 | config HID_PICOLCD_BACKLIGHT | ||
299 | bool "Backlight control" if EMBEDDED | ||
300 | default !EMBEDDED | ||
301 | depends on HID_PICOLCD | ||
302 | depends on HID_PICOLCD=BACKLIGHT_CLASS_DEVICE || BACKLIGHT_CLASS_DEVICE=y | ||
303 | ---help--- | ||
304 | Provide access to PicoLCD's backlight control via backlight | ||
305 | class. | ||
306 | |||
307 | config HID_PICOLCD_LCD | ||
308 | bool "Contrast control" if EMBEDDED | ||
309 | default !EMBEDDED | ||
310 | depends on HID_PICOLCD | ||
311 | depends on HID_PICOLCD=LCD_CLASS_DEVICE || LCD_CLASS_DEVICE=y | ||
312 | ---help--- | ||
313 | Provide access to PicoLCD's LCD contrast via lcd class. | ||
314 | |||
315 | config HID_PICOLCD_LEDS | ||
316 | bool "GPO via leds class" if EMBEDDED | ||
317 | default !EMBEDDED | ||
318 | depends on HID_PICOLCD | ||
319 | depends on HID_PICOLCD=LEDS_CLASS || LEDS_CLASS=y | ||
320 | ---help--- | ||
321 | Provide access to PicoLCD's GPO pins via leds class. | ||
322 | |||
288 | config HID_QUANTA | 323 | config HID_QUANTA |
289 | tristate "Quanta Optical Touch" | 324 | tristate "Quanta Optical Touch" |
290 | depends on USB_HID | 325 | depends on USB_HID |