Input: iqs7222 - set all ULP entry masks by default
authorJeff LaBundy <jeff@labundy.com>
Thu, 8 Sep 2022 21:24:35 +0000 (14:24 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 14 Sep 2022 10:08:50 +0000 (03:08 -0700)
commitd56111ed58482de0045e1e1201122e6e71516945
treee7b3b9cbcc43864d6fc1e0e903d99435ec2ccc60
parent514c13b1faed74e9bc19061b6d7c78d53a3402ba
Input: iqs7222 - set all ULP entry masks by default

Some devices expose an ultra-low-power (ULP) mode entry mask for
each channel. If the mask is set, the device cannot enter ULP so
long as the corresponding channel remains in an active state.

The vendor has advised setting the mask for any disabled channel.
To accommodate this suggestion, initially set all masks and then
clear them only if specified in the device tree.

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