Input: iqs5xx - eliminate unnecessary register read
authorJeff LaBundy <jeff@labundy.com>
Mon, 25 Jan 2021 04:40:51 +0000 (20:40 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 25 Jan 2021 04:49:09 +0000 (20:49 -0800)
commit050fac7f056b23764a69fb1fcf3b4e4e90eb61b0
tree0b6cbf564189fd94e6bff32f10cbe02bbd738b1f
parent4a76d861d9182f2edfab96e7aa1f1e10f4f86bc0
Input: iqs5xx - eliminate unnecessary register read

Instead of relying on firmware to enable important register fields
and performing read-modify-write operations to additionally enable
the fields the driver cares about, it's much simpler just to write
all of the pertinent fields explicitly.

This avoids an unnecessary register read operation at start-up and
makes way for the iqs5xx_read_byte() helper to be dropped.

Signed-off-by: Jeff LaBundy <jeff@labundy.com>
Link: https://lore.kernel.org/r/1611002626-5889-8-git-send-email-jeff@labundy.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/iqs5xx.c