OSDN Git Service

Input: goodix - use actual config length for each device type
authorIrina Tirdea <irina.tirdea@intel.com>
Thu, 17 Dec 2015 23:55:21 +0000 (15:55 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 18 Dec 2015 01:11:51 +0000 (17:11 -0800)
commita779fbc6c931007559b74fd74c2dc7b1c25bac33
treee699e667ffc504ce5d265c5321a49c4fe79e0363
parent7f0ad5396a22c061c3c724c299848b4bc2440de5
Input: goodix - use actual config length for each device type

Each of the Goodix devices supported by this driver has a fixed size for
the configuration information registers. The size varies depending on the
device and is specified in the datasheet.

Use the proper configuration length as specified in the datasheet for
each device model, so we do not read more than the actual size of the
configuration registers.

Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Acked-by: Bastien Nocera <hadess@hadess.net>
Tested-by: Bastien Nocera <hadess@hadess.net>
Tested-by: Aleksei Mamlin <mamlinav@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/goodix.c