]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: system76_acpi: fix Kconfig dependencies
authorArnd Bergmann <arnd@arndb.de>
Fri, 22 Oct 2021 15:48:40 +0000 (17:48 +0200)
committerHans de Goede <hdegoede@redhat.com>
Sun, 24 Oct 2021 08:18:27 +0000 (10:18 +0200)
commit7999f9a1cc27c047afe97bfefdd043e8ed9b9aa1
tree7ecba411b83dd9d2a0cccc613a7bb5afc8c5fe70
parent26385e3d34f77546436c477a8817f6231307e1e8
platform/x86: system76_acpi: fix Kconfig dependencies

When CONFIG_INPUT is disabled, this driver now fails to link:

ld.lld: error: undefined symbol: devm_input_allocate_device
>>> referenced by system76_acpi.c
>>>               platform/x86/system76_acpi.o:(system76_add) in archive drivers/built-in.a

ld.lld: error: undefined symbol: input_set_capability
>>> referenced by system76_acpi.c
>>>               platform/x86/system76_acpi.o:(system76_add) in archive drivers/built-in.a

ld.lld: error: undefined symbol: devm_hwmon_device_register_with_info
>>> referenced by system76_acpi.c
>>>               platform/x86/system76_acpi.o:(system76_add) in archive drivers/built-in.a

ld.lld: error: undefined symbol: battery_hook_unregister
>>> referenced by system76_acpi.c
>>>               platform/x86/system76_acpi.o:(system76_remove) in archive drivers/built-in.a

Add Kconfig dependencies for each of these three.

Fixes: af45cc2f29bd ("platform/x86: system76_acpi: Replace Fn+F2 function for OLED models")
Fixes: 1031dc88fafc ("platform/x86: system76_acpi: Report temperature and fan speed")
Fixes: 7086c212e597 ("platform/x86: system76_acpi: Add battery charging thresholds")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20211022154901.904984-1-arnd@kernel.org
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/Kconfig