HID: hid-picolcd depends on LCD_CLASS_DEVICE
authorBruno Prémont <bonbons@linux-vserver.org>
Sun, 11 Apr 2010 10:17:45 +0000 (12:17 +0200)
committerJiri Kosina <jkosina@suse.cz>
Sun, 11 Apr 2010 18:26:46 +0000 (20:26 +0200)
commit5435f2818ea08bcb381dcd2a99b1607b2a42f329
tree493f43cc5458e494a45d28ff776eea40880cb6c3
parenteb741103f17a19fccf7c795ed1d9662196acc6e5
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>
drivers/hid/Kconfig
drivers/hid/hid-picolcd.c