]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Input: iqs7222 - explicitly define number of external channels
authorJeff LaBundy <jeff@labundy.com>
Mon, 30 Jun 2025 01:33:30 +0000 (18:33 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2025 14:03:19 +0000 (16:03 +0200)
commitc9a841fd2ec2e0147585a5c9cfcfaaa8dd67d47b
tree300e8766a0a10e8173203ddf3f47b7206ab7ff9b
parent2cd5e7c16942786d05eef79647569698a4648630
Input: iqs7222 - explicitly define number of external channels

commit 63f4970a1219b5256e8ea952096c86dab666d312 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/misc/iqs7222.c