linux/drivers/input/touchscreen
Dmitry Torokhov 508a82dabf Input: ar1021_i2c - fix too long name in driver's device table
[ Upstream commit 95123fc435 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-03-24 10:58:40 +01:00
..
88pm860x-ts.c Input: 88pm860x-ts - fix child-node lookup 2018-01-23 19:50:15 +01:00
ad7877.c
ad7879-i2c.c
ad7879-spi.c
ad7879.c
ad7879.h
ads7846.c
ar1021_i2c.c Input: ar1021_i2c - fix too long name in driver's device table 2018-03-24 10:58:40 +01:00
atmel_mxt_ts.c
atmel-wm97xx.c
auo-pixcir-ts.c
bcm_iproc_tsc.c
bu21013_ts.c
chipone_icn8318.c
colibri-vf50-ts.c
cy8ctmg110_ts.c
cyttsp_core.c
cyttsp_core.h
cyttsp_i2c_common.c
cyttsp_i2c.c
cyttsp_spi.c
cyttsp4_core.c
cyttsp4_core.h
cyttsp4_i2c.c
cyttsp4_spi.c
da9034-ts.c
da9052_tsi.c
dynapro.c
edt-ft5x06.c
eeti_ts.c
egalax_ts.c
elants_i2c.c Input: elants_i2c - avoid divide by 0 errors on bad touchscreen data 2017-01-19 20:17:20 +01:00
elo.c
ft6236.c
fujitsu_ts.c
goodix.c
gunze.c
hampshire.c
hp680_ts_input.c
htcpen.c
ili210x.c
imx6ul_tsc.c
inexio.c
intel-mid-touch.c
ipaq-micro-ts.c
jornada720_ts.c
Kconfig
lpc32xx_ts.c
mainstone-wm97xx.c
Makefile
max11801_ts.c
mc13783_ts.c
mcs5000_ts.c
migor_ts.c
mk712.c
mms114.c
mtouch.c
of_touchscreen.c
pcap_ts.c
penmount.c
pixcir_i2c_ts.c
rohm_bu21023.c
s3c2410_ts.c
st1232.c
stmpe-ts.c
sun4i-ts.c
sur40.c Input: sur40 - validate number of endpoints before using them 2017-03-30 09:35:15 +02:00
sx8654.c
ti_am335x_tsc.c
touchit213.c
touchright.c
touchwin.c
tps6507x-ts.c
tsc40.c
tsc200x-core.c Input: tsc200x - report proper input_dev name 2016-08-10 11:49:26 +02:00
tsc200x-core.h Input: tsc200x - report proper input_dev name 2016-08-10 11:49:26 +02:00
tsc2004.c Input: tsc200x - report proper input_dev name 2016-08-10 11:49:26 +02:00
tsc2005.c Input: tsc200x - report proper input_dev name 2016-08-10 11:49:26 +02:00
tsc2007.c Input: tsc2007 - check for presence and power down tsc2007 during probe 2018-03-22 09:23:19 +01:00
ucb1400_ts.c
usbtouchscreen.c
w90p910_ts.c
wacom_i2c.c
wacom_w8001.c
wdt87xx_i2c.c
wm97xx-core.c
wm831x-ts.c
wm9705.c
wm9712.c
wm9713.c
zforce_ts.c
zylonite-wm97xx.c