Input: iqs7222 - explicitly define number of external channels
authorJeff LaBundy <jeff@labundy.com>
Mon, 30 Jun 2025 01:33:30 +0000 (18:33 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 30 Jun 2025 01:34:16 +0000 (18:34 -0700)
commit63f4970a1219b5256e8ea952096c86dab666d312
tree77fd2d95303321ca9c73b1b722a378575f811bce
parent22c69d786ef8fb789c61ca75492a272774221324
Input: iqs7222 - explicitly define number of external channels

The number of external channels is assumed to be a multiple of 10,
but this is not the case for IQS7222D. As a result, some CRx pins
are wrongly prevented from being assigned to some channels.

Address this problem by explicitly defining the number of external
channels for cases in which the number of external channels is not
equal to the total number of available channels.

Fixes: dd24e202ac72 ("Input: iqs7222 - add support for Azoteq IQS7222D")
Signed-off-by: Jeff LaBundy <jeff@labundy.com>
Link: https://lore.kernel.org/r/aGHVf6HkyFZrzTPy@nixie71
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/iqs7222.c