linux_dsm_epyc7002/drivers/input/rmi4
Arnd Bergmann 47d8e00ca3 [media] Input: synaptics-rmi4: disallow impossible configuration
The newly added debug mode for the synaptics-rmi4 driver relies on
the v4l2 interface and vb2_vmalloc, but those might be configured
as loadable modules when the driver itself is built-in, resulting
in a link failure:

drivers/input/rmi4/rmi_core.o: In function `rmi_f54_remove':
rmi_f54.c:(.text.rmi_f54_remove+0x14): undefined reference to `video_unregister_device'
rmi_f54.c:(.text.rmi_f54_remove+0x20): undefined reference to `v4l2_device_unregister'
drivers/input/rmi4/rmi_core.o: In function `rmi_f54_vidioc_s_input':
rmi_f54.c:(.text.rmi_f54_vidioc_s_input+0x10): undefined reference to `video_devdata'
drivers/input/rmi4/rmi_core.o: In function `rmi_f54_vidioc_g_input':
rmi_f54.c:(.text.rmi_f54_vidioc_g_input+0x10): undefined reference to `video_devdata'
drivers/input/rmi4/rmi_core.o: In function `rmi_f54_vidioc_fmt':
rmi_f54.c:(.text.rmi_f54_vidioc_fmt+0x10): undefined reference to `video_devdata'
drivers/input/rmi4/rmi_core.o: In function `rmi_f54_vidioc_enum_input':
rmi_f54.c:(.text.rmi_f54_vidioc_enum_input+0x10): undefined reference to `video_devdata'
drivers/input/rmi4/rmi_core.o: In function `rmi_f54_vidioc_querycap':
...

The best workaround I could come up with is to disallow the debug
mode unless it's actually possible to call it.

Fixes: 3a762dbd53 ("[media] Input: synaptics-rmi4 - add support for F54 diagnostics")

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Nick Dyer <nick@shmanahar.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-09-19 16:24:43 -03:00
..
Kconfig [media] Input: synaptics-rmi4: disallow impossible configuration 2016-09-19 16:24:43 -03:00
Makefile [media] Input: synaptics-rmi4 - add support for F54 diagnostics 2016-08-23 16:33:54 -03:00
rmi_2d_sensor.c Input: synaptics-rmi4 - add device tree support for 2d sensors and F11 2016-03-10 16:04:05 -08:00
rmi_2d_sensor.h Input: synaptics-rmi4 - add device tree support for 2d sensors and F11 2016-03-10 16:04:05 -08:00
rmi_bus.c [media] Input: synaptics-rmi4 - add support for F54 diagnostics 2016-08-23 16:33:54 -03:00
rmi_bus.h Input: synaptics-rmi4 - add device tree support for RMI4 I2C devices 2016-03-10 16:02:41 -08:00
rmi_driver.c Input: synaptics-rmi4 - remove check of Non-NULL array 2016-03-17 17:15:56 -07:00
rmi_driver.h [media] Input: synaptics-rmi4 - add support for F54 diagnostics 2016-08-23 16:33:54 -03:00
rmi_f01.c Input: synaptics-rmi4 - fix spelling in defines 2016-05-19 09:35:16 -07:00
rmi_f11.c Input: synaptics-rmi4 - use the RMI_F11_REL_BYTES define in rmi_f11_rel_pos_report 2016-07-14 09:43:44 -07:00
rmi_f12.c Merge branch 'next' into for-linus 2016-07-26 12:07:15 -07:00
rmi_f30.c Input: synaptics-rmi4 - add support for F30 2016-03-10 16:04:23 -08:00
rmi_f54.c [media] Input: synaptics-rmi4 - add support for F54 diagnostics 2016-08-23 16:33:54 -03:00
rmi_i2c.c Input: synaptics-rmi4 - support regulator supplies 2016-07-13 17:27:24 -07:00
rmi_spi.c Input: synaptics-rmi4 - add device tree support to the SPI transport driver 2016-03-10 16:04:25 -08:00