]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Input: iqs7222 - trim force communication command
authorJeff LaBundy <jeff@labundy.com>
Thu, 8 Sep 2022 21:22:46 +0000 (14:22 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 14 Sep 2022 10:08:47 +0000 (03:08 -0700)
According to the datasheets, writing only 0xFF is sufficient to
elicit a communication window. Remove the superfluous 0x00 from
the force communication command.

Fixes: a8b0abcc88cc ("Input: add support for Azoteq IQS7222A/B/C")
Signed-off-by: Jeff LaBundy <jeff@labundy.com>
Link: https://lore.kernel.org/r/20220908131548.48120-6-jeff@labundy.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/iqs7222.c

index b2e8097a2e6d97b18efd059f7884c50e22adbf9c..376ba3e29eb640c601e15e8cc09dd351347acc2e 100644 (file)
@@ -1077,7 +1077,7 @@ static int iqs7222_hard_reset(struct iqs7222_private *iqs7222)
 
 static int iqs7222_force_comms(struct iqs7222_private *iqs7222)
 {
-       u8 msg_buf[] = { 0xFF, 0x00, };
+       u8 msg_buf[] = { 0xFF, };
        int ret;
 
        /*