Input: synaptics-rmi4 - fix maximum size check for F12 control register 8
authorAndrew Duggan <aduggan@synaptics.com>
Wed, 20 Jul 2016 00:53:59 +0000 (17:53 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 20 Jul 2016 00:56:35 +0000 (17:56 -0700)
commite4add7b6beaff4061693d0632bc1dcb306edba10
tree484f4090365286565522d0802237f345c86c9527
parent6a5029e66404462a3322dba8e35615bd09332081
Input: synaptics-rmi4 - fix maximum size check for F12 control register 8

According to the RMI4 spec the maximum size of F12 control register 8 is
15 bytes. The current code incorrectly reports an error if control 8 is
greater then 14. Making sensors with a control register 8 with 15 bytes
unusable.

Signed-off-by: Andrew Duggan <aduggan@synaptics.com>
Reported-by: Chris Healy <cphealy@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/rmi4/rmi_f12.c