Skip to contentSkip to conversation

Input: raspberrypi-ts: select CONFIG_INPUT_POLLDEV

PATCH Applied Arnd Bergmann 3 participants 3 messages Mar 4, 2019 – Mar 9, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Input: raspberrypi-ts: select CONFIG_INPUT_POLLDEV

When CONFIG_INPUT_POLLDEV is disabled, we get a link error:

drivers/input/touchscreen/raspberrypi-ts.o: In function `rpi_ts_probe':
raspberrypi-ts.c:(.text+0xec): undefined reference to devm_input_allocate_polled_device' raspberrypi-ts.c:(.text+0xec): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol devm_input_allocate_polled_device' raspberrypi-ts.c:(.text+0x19c): undefined reference to input_register_polled_device' raspberrypi-ts.c:(.text+0x19c): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol input_register_polled_device'

Select that symbol like we do from the other similar drivers.

Fixes 0b9f28fed3f7 ("Input: add official Raspberry Pi's touchscreen driver")
---
 drivers/input/touchscreen/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/input/touchscreen/Kconfig +1 -0
index 7c597a49c265..7a4884ad198b 100644
@@ -699,6 +699,7 @@ config TOUCHSCREEN_EDT_FT5X06
 config TOUCHSCREEN_RASPBERRYPI_FW
 	tristate "Raspberry Pi's firmware base touch screen support"
 	depends on RASPBERRYPI_FIRMWARE || (RASPBERRYPI_FIRMWARE=n && COMPILE_TEST)
+	select INPUT_POLLDEV
 	help
 	  Say Y here if you have the official Raspberry Pi 7 inch screen on
 	  your system.
Signature · 1 line
2.20.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 33 lines · Arnd Bergmann

When CONFIG_INPUT_POLLDEV is disabled, we get a link error:

drivers/input/touchscreen/raspberrypi-ts.o: In function `rpi_ts_probe':
raspberrypi-ts.c:(.text+0xec): undefined reference to devm_input_allocate_polled_device' raspberrypi-ts.c:(.text+0xec): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol devm_input_allocate_polled_device' raspberrypi-ts.c:(.text+0x19c): undefined reference to `input_register_polled_device'
raspberrypi-ts.c:(.text+0x19c): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `input_register_polled_device'

Select that symbol like we do from the other similar drivers.

Fixes 0b9f28fed3f7 ("Input: add official Raspberry Pi's touchscreen driver")
---
 drivers/input/touchscreen/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/input/touchscreen/Kconfig +1 -0
index 7c597a49c265..7a4884ad198b 100644
@@ -699,6 +699,7 @@ config TOUCHSCREEN_EDT_FT5X06
 config TOUCHSCREEN_RASPBERRYPI_FW
 	tristate "Raspberry Pi's firmware base touch screen support"
 	depends on RASPBERRYPI_FIRMWARE || (RASPBERRYPI_FIRMWARE=n &&
 COMPILE_TEST)
+	select INPUT_POLLDEV
 	help
 	  Say Y here if you have the official Raspberry Pi 7 inch screen on
Quoted 1 line

your system.

Thanks!
Looks good to me.

maintainer Applied
#2 lore raw
Quoted 39 lines · Nicolas Saenz Julienne
Quoted 33 lines · Arnd Bergmann

When CONFIG_INPUT_POLLDEV is disabled, we get a link error:

drivers/input/touchscreen/raspberrypi-ts.o: In function `rpi_ts_probe':
raspberrypi-ts.c:(.text+0xec): undefined reference to devm_input_allocate_polled_device' raspberrypi-ts.c:(.text+0xec): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol devm_input_allocate_polled_device' raspberrypi-ts.c:(.text+0x19c): undefined reference to `input_register_polled_device'
raspberrypi-ts.c:(.text+0x19c): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `input_register_polled_device'

Select that symbol like we do from the other similar drivers.

Fixes 0b9f28fed3f7 ("Input: add official Raspberry Pi's touchscreen driver")
---
 drivers/input/touchscreen/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/input/touchscreen/Kconfig +1 -0
index 7c597a49c265..7a4884ad198b 100644
@@ -699,6 +699,7 @@ config TOUCHSCREEN_EDT_FT5X06
 config TOUCHSCREEN_RASPBERRYPI_FW
 	tristate "Raspberry Pi's firmware base touch screen support"
 	depends on RASPBERRYPI_FIRMWARE || (RASPBERRYPI_FIRMWARE=n &&
 COMPILE_TEST)
+	select INPUT_POLLDEV
 	help
 	  Say Y here if you have the official Raspberry Pi 7 inch screen on
Quoted 1 line

your system.

Thanks!
Looks good to me.

Quoted 2 lines

Applied, thank you.

Signature · 1 line
Dmitry