Skip to contentSkip to conversation

hid: Kconfig: Add LEDS_CLASS_MULTICOLOR dependency to HID_LOGITECH

PATCH In review Kate Hsuan 2 participants 2 messages Feb 11, 2025 HID

lore
Share & tools
lore

Kate Hsuan

author
#0 lore raw

PATCH 1/1 hid: Kconfig: Add LEDS_CLASS_MULTICOLOR dependency to HID_LOGITECH

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':

Quoted 1 line
Quoted 1 line

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':

Quoted 1 line
Quoted 1 line

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.

---
 drivers/hid/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/hid/Kconfig +1 -0
index 4d2a89d65b65..d7a36c9e94c2 100644
@@ -601,6 +601,7 @@ config HID_LOGITECH
 	tristate "Logitech devices"
 	depends on USB_HID
 	depends on LEDS_CLASS
+	depends on LEDS_CLASS_MULTICOLOR
 	default !EXPERT
 	help
 	Support for Logitech devices that are not fully compliant with HID standard.
Signature · 1 line
2.48.1
maintainer
#1 lore raw
Quoted 9 lines · Kate Hsuan

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':
Quoted 1 line
Quoted 1 line

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':

Quoted 1 line
Quoted 1 line

drivers/hid/hid-lg-g15.c:686:(.text+0xa9c): undefined reference to `devm_led_classdev_multicolor_register_ext'

Quoted 7 lines

Since multicolor LED APIs manage the keyboard backlight settings of hid-lg-g15, the LEDS_CLASS_MULTICOLOR dependency was added to HID_LOGITECH.

I've added

	Fixes: a3a064146c50 ("HID: hid-lg-g15: Use standard multicolor LED API")

make the 'HID:' prefix in shortlog uppercase, and applied.

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs