]> git.baikalelectronics.ru Git - kernel.git/commit
Input: applespi - add dependency on LEDS_CLASS
authorYueHaibing <yuehaibing@huawei.com>
Wed, 31 Jul 2019 13:48:09 +0000 (06:48 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 31 Jul 2019 13:50:18 +0000 (06:50 -0700)
commit5e18879c02afe5e8d8b6824e47e9c9f71d25ee32
tree1807d59f2d5ef28105d3c8422779f590b675508a
parenta5d4860062d4b4d6a56302534bca201eb02e2a72
Input: applespi - add dependency on LEDS_CLASS

If applespi is enabled, but LEDs class support is not, the build fails:

drivers/input/keyboard/applespi.o: In function `applespi_probe':
applespi.c:(.text+0x1fcd): undefined reference to `devm_led_classdev_register_ext'

Add "depends on LEDS_CLASS" to the Konfig

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: 887a7d12cd3f ("Input: add Apple SPI keyboard and trackpad driver")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/Kconfig