Input: ad7879 - add check for read errors in interrupt
authorAditya Pakki <pakki001@umn.edu>
Mon, 7 Jan 2019 19:53:59 +0000 (11:53 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 7 Jan 2019 19:59:57 +0000 (11:59 -0800)
commite85bb0beb6498c0dffe18a2f1f16d575bc175c32
tree59b68bc824a4efc4515f8782cc4f53b0c363d4d2
parent1cdbd3e57698fa22eddb522b2c7fa6048420da5f
Input: ad7879 - add check for read errors in interrupt

regmap_bulk_read() can return a non zero value on failure. The fix checks
if the function call succeeded before calling mod_timer. The issue was
identified by a static analysis tool.

Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/ad7879.c