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)
commite9003c9cfaa17d26991688268b04244adb67ee2b
treec3faf81b0fb86053c3f407dd1e2b6a8f7a04a38c
parent510cccb5b0c8868a2b302a0ab524da7912da648b
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