]> git.baikalelectronics.ru Git - kernel.git/commit
Input: applespi - select CRC16 module
authorArnd Bergmann <arnd@arndb.de>
Tue, 23 Jul 2019 13:41:35 +0000 (16:41 +0300)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 23 Jul 2019 13:48:58 +0000 (16:48 +0300)
commit7b77addc3b2cae031fc4cd25fe2b060ad3e4b1b4
tree8eb7576f69b29bdc34b0b08e9a3027006d2e9e5b
parenteed68ba307b7ace62852304837279006eb8501c9
Input: applespi - select CRC16 module

In some rare randconfig builds, CRC16 is disabled, which leads
to a link error:

drivers/input/keyboard/applespi.o: In function `applespi_send_cmd_msg':
applespi.c:(.text+0x449f): undefined reference to `crc16'
drivers/input/keyboard/applespi.o: In function `applespi_verify_crc':
applespi.c:(.text+0x7538): undefined reference to `crc16'

This symbol is meant to be selected for each user in Kconfig,
so do that here as well.

Fixes: ca70da10c91f ("Input: add Apple SPI keyboard and trackpad driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/Kconfig