Input: ar1021_i2c - fix too long name in driver's device table
Dmitry Torokhov authored
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: dd4cae8b

 ("Input: Add Microchip AR1021 i2c touchscreen")
Reviewed-By: default avatarChristian Gmeiner <christian.gmeiner@gmail.com>
Tested-by: default avatarMartin Kepplinger <martin.kepplinger@ginzinger.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
95123fc4
Name Last commit Last update
Documentation Input: use svg files instead of xfig in force feedback documentation
arch Input: eeti_ts - switch to gpiod API
block blk-mq: include errors in did_work calculation
certs certs: Add a secondary system keyring that can be added to dynamically
crypto Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
drivers Input: ar1021_i2c - fix too long name in driver's device table
firmware WHENCE: use https://linuxtv.org for LinuxTV URLs
fs Merge branch 'akpm' (patches from Andrew)
include Input: eeti_ts - switch to gpiod API
init mm: move mm_percpu_wq initialization earlier
ipc Merge branch 'WIP.sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
kernel Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
lib Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
mm mm/hugetlb.c: don't call region_abort if region_chg fails
net Merge tag 'nfsd-4.11-1' of git://linux-nfs.org/~bfields/linux
samples Merge branch 'rebased-statx' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
scripts x86/build: Mostly disable '-maccumulate-outgoing-args'
security Merge branch 'WIP.sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
sound ALSA: hda - fix a problem for lineout on a Dell AIO machine
tools Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
usr kbuild: initramfs cleanup, set target from Kconfig
virt KVM: pci-assign: do not map smm memory slot pages in vt-d page tables
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Add hch to .get_maintainer.ignore
.gitattributes .gitattributes: set git diff driver for C source code files
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Linux kernel
============

This file was moved to Documentation/admin-guide/README.rst

Please notice that there are several guides for kernel developers and users.
These guides can be rendered in a number of formats, like HTML and PDF.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.