Skip to content

Commit 020834b

Browse files
arndbdtor
authored andcommitted
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: 038b1a0 ("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>
1 parent a7cd67e commit 020834b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/input/keyboard/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ config KEYBOARD_APPLESPI
7676
depends on ACPI && EFI
7777
depends on SPI
7878
depends on X86 || COMPILE_TEST
79+
select CRC16
7980
help
8081
Say Y here if you are running Linux on any Apple MacBook8,1 or later,
8182
or any MacBookPro13,* or MacBookPro14,*.

0 commit comments

Comments
 (0)