linux-hardened/drivers/input
Dmitry Torokhov 95123fc435 Input: ar1021_i2c - fix too long name in driver's device table
The name field in structure i2c_device_id is 20 characters, and we expect
it to be NULL-terminated, however we are trying to stuff it with 21 bytes
and thus NULL-terminator is lost. This causes issues when one creates
device with name "MICROCHIP_AR1021_I2C" as i2c core cuts off the last "C",
and automatic module loading by alias does not work as result.

The -I2C suffix in the device name is superfluous, we know what bus we are
dealing with, so let's drop it. Also, no other driver uses capitals, and
the manufacturer name is normally not included, except in very rare cases
of incompatible name collisions.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=116211
Fixes: dd4cae8bf1 ("Input: Add Microchip AR1021 i2c touchscreen")
Reviewed-By: Christian Gmeiner <christian.gmeiner@gmail.com>
Tested-by: Martin Kepplinger <martin.kepplinger@ginzinger.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2017-04-14 10:16:38 -07:00
..
gameport Input: gameport - use setup_timer 2017-04-10 20:41:39 -07:00
joystick Input: xpad - support some quirky Xbox One pads 2017-04-10 20:45:14 -07:00
keyboard Input: omap-keypad - fix error handling code 2017-04-10 20:51:49 -07:00
misc Input: yealink - define packet offset __be16 instead of u16 2017-04-10 20:41:41 -07:00
mouse Input: synaptics - use u8 instead of unsigned char 2017-04-03 16:23:58 -07:00
rmi4 Input: synaptics-rmi4 - when registering sensors do not call them "drivers" 2017-04-03 16:24:00 -07:00
serio Linux 4.11-rc5 2017-04-03 12:01:20 -07:00
tablet Input: kbtab - validate number of endpoints before using them 2017-03-16 13:56:53 -07:00
touchscreen Input: ar1021_i2c - fix too long name in driver's device table 2017-04-14 10:16:38 -07:00
apm-power.c
evbug.c
evdev.c Input: evdev - fix bug in checking duplicate clock change request 2015-10-31 10:35:02 -07:00
ff-core.c Input: document and check on implicitly defined FF_MAX_EFFECTS 2015-10-16 15:32:16 -07:00
ff-memless.c
input-compat.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
input-compat.h drivers/input: eliminate INPUT_COMPAT_TEST macro 2016-03-25 16:37:42 -07:00
input-leds.c Input: LEDs - skip unnamed LEDs 2015-07-24 09:11:01 -07:00
input-mt.c Input: update input_mt_report_pointer_emulation to support hovering 2016-06-01 14:21:10 -07:00
input-polldev.c
input.c Input: refuse to register absolute devices without absinfo 2017-02-01 10:33:21 -08:00
joydev.c Input: joydev - do not report stale values on first open 2017-02-09 13:29:04 -08:00
Kconfig Input: mousedev - stop offering PS/2 to userspace by default 2017-01-31 11:31:49 -08:00
Makefile Input: synaptics-rmi4 - add support for Synaptics RMI4 devices 2016-03-10 16:02:39 -08:00
matrix-keymap.c Input: matrix-keypad - switch to using generic device properties 2017-01-31 11:31:48 -08:00
mousedev.c
sparse-keymap.c Input: sparse-keymap - use a managed allocation for keymap copy 2017-03-08 14:28:53 -08:00