platform/x86: lenovo-yogabook: add I2C dependency
PATCH 1/1 platform/x86: lenovo-yogabook: add I2C dependency
From: Arnd Bergmann <[email protected]>
The added platform_driver support fails to link when I2C core support is not rechable:
x86_64-linux-ld: drivers/platform/x86/lenovo-yogabook.o: in function `yogabook_pdev_probe':
lenovo-yogabook.c:(.text+0x5a5): undefined reference to `i2c_bus_type'
Add a Kconfig dependency to enforce a working configuration.
--- drivers/platform/x86/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/platform/x86/Kconfig +1 -0
@@ -125,6 +125,7 @@ config YOGABOOK tristate "Lenovo Yoga Book tablet key driver" depends on ACPI_WMI depends on INPUT + depends on I2C select LEDS_CLASS select NEW_LEDS help
Signature · 1 line
2.39.2
Hi Arnd,
Quoted 5 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
The added
platform_driversupport fails to link when I2C core support is not rechable:
Quoted 7 lines
x86_64-linux-ld:
drivers/platform/x86/lenovo-yogabook.o: in function `yogabook_pdev_probe':
lenovo-yogabook.c:(.text+0x5a5): undefined reference to `i2c_bus_type'Add a
Kconfigdependency to enforce a working configuration.Fixes 6df1523fa0b7 ("platform/x86: lenovo-yogabook: Add platform driver support")Signed-off-by Arnd Bergmann <[email protected]>
Thank you I have pushed this to pdx86/for-next now.
Regards,
Hans
Quoted 16 lines
--- drivers/platform/x86/Kconfig | 1 + 1 file changed, 1 insertion(+)drivers/platform/x86/Kconfig +1
-0@@ -125,6 +125,7 @@ config YOGABOOK tristate "Lenovo Yoga Book tablet key driver" depends on ACPI_WMI depends on INPUT + depends on I2C select LEDS_CLASS select NEW_LEDS help