]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8ba08fd1dac0ced42545ed7082e7744ee7eca09a
treee7b3b9cbcc43864d6fc1e0e903d99435ec2ccc60
parentf6e49ec602860c57956615bd50114d45e331c099
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: 27eaac94c6be ("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