[PATCHv2 0/2] Input: mtk-pmic-keys: probe cleanups

From: Rosen Penev

Date: Tue Jul 28 2026 - 17:24:57 EST


Replace an open-coded of_match_device() lookup with
of_device_get_match_data(), then rework the key-counting logic
to iterate child nodes in a single pass instead of pre-counting.

v2: split patches up and add irq checks.

Rosen Penev (2):
Input: mtk-pmic-keys: use of_device_get_match_data()
Input: mtk-pmic-keys: Count available keys during probe instead of
pre-counting

drivers/input/keyboard/mtk-pmic-keys.c | 76 ++++++++++++--------------
1 file changed, 35 insertions(+), 41 deletions(-)

--
2.55.0