Input: matrix_keypad - avoid repeatedly converting GPIO to IRQ
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 21 Jan 2024 05:32:28 +0000 (21:32 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 31 Jan 2024 18:53:51 +0000 (10:53 -0800)
commita96fb711c6be76bcfbcf594a865002fa7c0eb525
treebbd46e2a987d151666605137e84fc0035b7d8d14
parent3aa182bbc5b657329a8b85fa5303b8af0f461636
Input: matrix_keypad - avoid repeatedly converting GPIO to IRQ

There is no need to do conversion from GPIOs to interrupt numbers.
Convert row GPIOs to interrupt numbers once in probe() and use
this information when the driver needs to enable or disable given
interrupt line.

Link: https://lore.kernel.org/r/20240121053232.276968-1-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/matrix_keypad.c