Skip to content

Commit 5771f6a

Browse files
Kate HsuanSasha Levin
authored andcommitted
HID: Kconfig: Add LEDS_CLASS_MULTICOLOR dependency to HID_LOGITECH
[ Upstream commit 4465f4f ] The test bot found an issue with building hid-lg-g15. All errors (new ones prefixed by >>): powerpc-linux-ld: drivers/hid/hid-lg-g15.o: in function `lg_g510_kbd_led_write': >> drivers/hid/hid-lg-g15.c:241:(.text+0x768): undefined reference to `led_mc_calc_color_components' powerpc-linux-ld: drivers/hid/hid-lg-g15.o: in function `lg_g15_register_led': >> drivers/hid/hid-lg-g15.c:686:(.text+0xa9c): undefined reference to `devm_led_classdev_multicolor_register_ext' Since multicolor LED APIs manage the keyboard backlight settings of hid-lg-g15, the LEDS_CLASS_MULTICOLOR dependency was added to HID_LOGITECH. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202502110032.VZ0J024X-lkp@intel.com/ Fixes: a3a0641 ("HID: hid-lg-g15: Use standard multicolor LED API") Signed-off-by: Kate Hsuan <hpa@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent d69fd44 commit 5771f6a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/hid/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,7 @@ config HID_LOGITECH
603603
tristate "Logitech devices"
604604
depends on USB_HID
605605
depends on LEDS_CLASS
606+
depends on LEDS_CLASS_MULTICOLOR
606607
default !EXPERT
607608
help
608609
Support for Logitech devices that are not fully compliant with HID standard.

0 commit comments

Comments
 (0)