summaryrefslogtreecommitdiff
path: root/drivers/net/amt.c
diff options
context:
space:
mode:
authorMattijs Korpershoek <mkorpershoek@baylibre.com>2022-07-09 00:57:31 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2022-07-09 00:58:36 +0300
commitd6ed52583034f9d2e39dead7c18e03380fd4edf2 (patch)
treea230d7fabc040cddda3e1cf98437d10267f89e07 /drivers/net/amt.c
parent436d219069628f0f0ed27f606224d4ee02a0ca17 (diff)
downloadlinux-d6ed52583034f9d2e39dead7c18e03380fd4edf2.tar.xz
Input: mt6779-keypad - match hardware matrix organization
The MediaTek keypad has a set of bits representing keys, from KEY0 to KEY77, arranged in 5 chunks of 15 bits split into 5 32-bit registers. In our implementation, we simply decided to use register number as row and offset in the register as column when encoding our "matrix". Because of this, we can have a 5x32 matrix which does not match the hardware at all, which is confusing. Change the row/column calculation to match the hardware. Fixes: f28af984e771 ("Input: mt6779-keypad - add MediaTek keypad driver") Co-developed-by: Fabien Parent <fparent@baylibre.com> Signed-off-by: Fabien Parent <fparent@baylibre.com> Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> Link: https://lore.kernel.org/r/20220707075236.126631-2-mkorpershoek@baylibre.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/net/amt.c')
0 files changed, 0 insertions, 0 deletions