]> git.baikalelectronics.ru Git - kernel.git/commit
Input: tsc200x - report proper input_dev name
authorMichael Welling <mwelling@ieee.org>
Wed, 20 Jul 2016 17:02:07 +0000 (10:02 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 21 Jul 2016 00:50:24 +0000 (17:50 -0700)
commitc0f565285017bb6b5ef8521cd419b099d3f44298
treec3faf81b0fb86053c3f407dd1e2b6a8f7a04a38c
parentb4a4e0d7588a0d9ed68befdceee14d0ccb55a566
Input: tsc200x - report proper input_dev name

Passes input_id struct to the common probe function for the tsc200x drivers
instead of just the bustype.

This allows for the use of the product variable to set the input_dev->name
variable according to the type of touchscreen used. Note that when we
introduced support for TSC2004 we started calling everything TSC200X, so
let's keep this quirk.

Signed-off-by: Michael Welling <mwelling@ieee.org>
Cc: stable@vger.kernel.org
Acked-by: Pavel Machek <pavel@ucw.cz>
Acked-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/tsc2004.c
drivers/input/touchscreen/tsc2005.c
drivers/input/touchscreen/tsc200x-core.c
drivers/input/touchscreen/tsc200x-core.h