]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Input: elan_i2c - set input device's vendor and product IDs
authorCharlie Mooney <charliemooney@chromium.org>
Tue, 15 Dec 2015 19:32:10 +0000 (11:32 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 15 Dec 2015 19:35:55 +0000 (11:35 -0800)
commit3eab4588c958205451fd80dfd219955c5e91c18b
tree1d8d58e04d81025840980fd6f41a622b12bd39ea
parentfd18ab89166ab004d40f417ae1d6f5dfeecff8ee
Input: elan_i2c - set input device's vendor and product IDs

Previously the "vendor" and "product" IDs for the elan_i2c driver simply
reported 0000.  This patch modifies the elan_i2c driver to include the
Elan vendor ID and the touchpad's product id under
input/input*/{vendor,product}.

Specifically, this is to allow us to apply a generic Elan gestures config
that will apply to all Elan touchpads on ChromeOS.  These configs  match to
input devices in various ways, but one major way is by matching on vendor
ID.  Adding this patch allows the default Elan touchpad config to be
applied to Elan touchpads in this kernel by matching on devices that have
vendor ID 04f3.

Note that product ID is also available via custom sysfs entry "product_id"
as well.

Signed-off-by: Charlie Mooney <charliemooney@chromium.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/elan_i2c_core.c