]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit75d0abae088a586e687f398923db44abc70b5dac
tree0b6cbf564189fd94e6bff32f10cbe02bbd738b1f
parent9fed204d6322b8cd9aa7fc3fb4534ac3bcd0ee81
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