Input: hideep - silence error in SW_RESET()
authorHans de Goede <hdegoede@redhat.com>
Fri, 17 Mar 2023 10:48:07 +0000 (03:48 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 17 Mar 2023 10:55:15 +0000 (03:55 -0700)
commit10b0a455f4378330de41e280ce7839997d24297d
treeab3f34058dfc26fe13bbbccd345fcd30895ac771
parent5af7a77acd0ff23fe06d93c3c7d0e0aa7a264fa7
Input: hideep - silence error in SW_RESET()

On some models the first HIDEEP_SYSCON_WDT_CON write alone is enough to
cause the controller to reset, causing the second write to fail:

i2c-hideep_ts: write to register 0x52000014 (0x000001) failed: -121

Switch this write to a raw hideep_pgm_w_mem() to avoid an error getting
logged in this case.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20230311114726.182789-2-hdegoede@redhat.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/hideep.c