Input: synaptics-rmi4 - fix register descriptor subpacket map construction
authorAndrew Duggan <aduggan@synaptics.com>
Mon, 22 Aug 2016 18:28:11 +0000 (11:28 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 22 Aug 2016 21:14:46 +0000 (14:14 -0700)
commit3e29d6bb6433ebfa4e187b1164b80baf720d58c3
tree50af854be5af8de7bc994147eb7fa574cdf8964f
parentfae16989be77b09bab86c79233e4b511ea769cea
Input: synaptics-rmi4 - fix register descriptor subpacket map construction

The map_offset variable is specific to the register and needs to be reset
in the loop. Otherwise, subsequent register's subpacket maps will have
their bits set at the wrong index.

Signed-off-by: Andrew Duggan <aduggan@synaptics.com>
Tested-by: Nitin Chaudhary <nitinchaudhary1289@gmail.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/rmi4/rmi_driver.c