platform/x86: fix kconfig dependency warning for LG_LAPTOP
PATCH 1/1 platform/x86: fix kconfig dependency warning for LG_LAPTOP
When LG_LAPTOP is enabled and NEW_LEDS is disabled, it results in the following Kbuild warning:
WARNING: unmet direct dependencies detected for LEDS_CLASS
Depends on [n]: NEW_LEDS [=n]
Selected by [y]:
- LG_LAPTOP [=y] && X86 [=y] && X86_PLATFORM_DEVICES [=y] && ACPI [=y] && ACPI_WMI [=y] && INPUT [=y]
The reason is that LG_LAPTOP selects LEDS_CLASS without depending on or selecting NEW_LEDS while LEDS_CLASS is subordinate to NEW_LEDS.
Honor the kconfig menu hierarchy to remove kconfig dependency warnings.
--- drivers/platform/x86/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/platform/x86/Kconfig +1 -0
@@ -1112,6 +1112,7 @@ config LG_LAPTOP depends on ACPI_WMI depends on INPUT select INPUT_SPARSEKMAP + select NEW_LEDS select LEDS_CLASS help This driver adds support for hotkeys as well as control of keyboard
Signature · 1 line
2.25.1
Hi,
Quoted 8 lines · Necip Fazil Yildiran
When
LG_LAPTOPis enabled andNEW_LEDSis disabled, it results in the followingKbuildwarning:WARNING: unmet direct dependencies detected for
LEDS_CLASS
Depends on [n]:NEW_LEDS[=n]
Selected by [y]:
-LG_LAPTOP[=y] && X86 [=y] &&X86_PLATFORM_DEVICES[=y] && ACPI [=y] &&ACPI_WMI[=y] && INPUT [=y]
Quoted 7 lines
The reason is that
LG_LAPTOPselectsLEDS_CLASSwithout depending on or selectingNEW_LEDSwhileLEDS_CLASSis subordinate toNEW_LEDS.Honor the kconfig menu hierarchy to remove kconfig dependency warnings.
Fixes dbf0c5a6b1f8 ("platform/x86: Add LG Gram laptop special features driver")Signed-off-by Necip Fazil Yildiran <[email protected]>
Thnak you, patch looks good to me:
Note it seems that the FUJITSU_LAPTOP Kconfig symbol has the same issue, can you submit a patch for that one too?
Regards,
Hans
Quoted 17 lines
--- drivers/platform/x86/Kconfig | 1 + 1 file changed, 1 insertion(+)drivers/platform/x86/Kconfig +1
-0@@ -1112,6 +1112,7 @@ config LG_LAPTOP depends on ACPI_WMI depends on INPUT select INPUT_SPARSEKMAP + select NEW_LEDS select LEDS_CLASS help This driver adds support for hotkeys as well as control of keyboard
--mark
Quoted 34 lines · Necip Fazil Yildiran
When
LG_LAPTOPis enabled andNEW_LEDSis disabled, it results in the followingKbuildwarning:WARNING: unmet direct dependencies detected for
LEDS_CLASS
Depends on [n]:NEW_LEDS[=n]
Selected by [y]:
-LG_LAPTOP[=y] && X86 [=y] &&X86_PLATFORM_DEVICES[=y] && ACPI [=y] &&ACPI_WMI[=y] && INPUT [=y]The reason is that
LG_LAPTOPselectsLEDS_CLASSwithout depending on or selectingNEW_LEDSwhileLEDS_CLASSis subordinate toNEW_LEDS.Honor the kconfig menu hierarchy to remove kconfig dependency warnings.
Fixes dbf0c5a6b1f8 ("platform/x86: Add LG Gram laptop special features driver")Signed-off-by Necip Fazil Yildiran <[email protected]>--- drivers/platform/x86/Kconfig | 1 + 1 file changed, 1 insertion(+)drivers/platform/x86/Kconfig +1
-0@@ -1112,6 +1112,7 @@ config LG_LAPTOP depends on ACPI_WMI depends on INPUT select INPUT_SPARSEKMAP + select NEW_LEDS select LEDS_CLASS help This driver adds support for hotkeys as well as control of keyboardSignature · 1 line
2.25.1