Re: [PATCH] HID: logitech: Add depends on LEDS_CLASS to Logitech Kconfig entry

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Hans,

On Fri, Oct 4, 2019 at 3:37 AM Hans de Goede <hdegoede@xxxxxxxxxx> wrote:
>
> Commit 97b741aba918 ("HID: lg-g15: Add keyboard and LCD backlight control")
> makes the hid-lg15 kernel module, which gets configured through config
> HID_LOGITECH depends on symbols from the led class. Add a depends on
> LEDS_CLASS to HID_LOGITECH to avoid undefined reference errors on the
> led class symbols.
>
> Fixes: 97b741aba918 ("HID: lg-g15: Add keyboard and LCD backlight control")
> Reported-by: kbuild test robot <lkp@xxxxxxxxx>
> Reported-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
> Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx>
> ---
>  drivers/hid/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig
> index 1ecb5124421c..494a39e74939 100644
> --- a/drivers/hid/Kconfig
> +++ b/drivers/hid/Kconfig
> @@ -525,6 +525,7 @@ config HID_LENOVO
>  config HID_LOGITECH
>         tristate "Logitech devices"
>         depends on HID
> +       depends on LEDS_CLASS

My CI failed with this patch. It seems this creates a loop in the
dependencies and I can not create the config file. Also, it seems
weird to have a depends on LEDS_CLASS when you surely wants to enable
it. How about using SELECT instead?

Cheers,
Benjamin

>         default !EXPERT
>         ---help---
>         Support for Logitech devices that are not fully compliant with HID standard.
> --
> 2.23.0
>



[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux