Skip to contentSkip to conversation

input/touchscreen: fix sur40.c build errors

PATCH Superseded Randy Dunlap 2 participants 2 messages Apr 15, 2015

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

PATCH 1/1 input/touchscreen: fix sur40.c build errors

From: Randy Dunlap <[email protected]>

Fix build errors due to missing Kconfig dependency.

drivers/built-in.o: In function `sur40_disconnect':
sur40.c:(.text+0x22be6e): undefined reference to video_unregister_device' sur40.c:(.text+0x22be77): undefined reference to v4l2_device_unregister' drivers/built-in.o: In function `sur40_process_video':
sur40.c:(.text+0x22c1d4): undefined reference to v4l2_get_timestamp' drivers/built-in.o: In function sur40_probe':
sur40.c:(.text+0x22ca82): undefined reference to v4l2_device_register' sur40.c:(.text+0x22cb1a): undefined reference to v4l2_device_unregister' sur40.c:(.text+0x22cbf7): undefined reference to video_device_release_empty' sur40.c:(.text+0x22cc53): undefined reference to __video_register_device' sur40.c:(.text+0x22cc90): undefined reference to video_unregister_device' drivers/built-in.o: In function sur40_vidioc_querycap':
sur40.c:(.text+0x22ccb0): undefined reference to `video_devdata'

Cc Florian 'floe' Echtler <[email protected]>
Cc Dmitry Torokhov <[email protected]>
---
 drivers/input/touchscreen/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/input/touchscreen/Kconfig +1 -0
@@ -981,6 +981,7 @@ config TOUCHSCREEN_SUR40
 	tristate "Samsung SUR40 (Surface 2.0/PixelSense) touchscreen"
 	depends on USB
 	depends on MEDIA_USB_SUPPORT
+	depends on VIDEO_V4L2
 	select INPUT_POLLDEV
 	select VIDEOBUF2_DMA_SG
 	help
#1 lore raw

Hello Randy,

Quoted 8 lines · Randy Dunlap
---
 drivers/input/touchscreen/Kconfig |    1 +
 1 file changed, 1 insertion(+)

drivers/input/touchscreen/Kconfig config TOUCHSCREEN_SUR40 · line 987

Quoted 7 lines
drivers/input/touchscreen/Kconfig +1 -0
@@ -981,6 +981,7 @@ config TOUCHSCREEN_SUR40
 	tristate "Samsung SUR40 (Surface 2.0/PixelSense) touchscreen"
 	depends on USB
 	depends on MEDIA_USB_SUPPORT
+	depends on VIDEO_V4L2
 	select INPUT_POLLDEV
 	select VIDEOBUF2_DMA_SG
 	help

Thanks for catching this. I assumed videobuf2 would to auto-select video-v4l2 in any case.

Best, Florian

Signature · 1 line
SENT FROM MY DEC VT50 TERMINAL