Files
linux/drivers
Mattijs Korpershoek f4e09e8bfd Input: mtk-pmic-keys - use get_irq_byname() instead of index
Some pmics of the mt6397 family (such as MT6358), have two IRQs per
physical key: one for press event, another for release event.

The mtk-pmic-keys driver assumes that each key only has one
IRQ. The key index and the RES_IRQ resource index have a 1/1 mapping.

This won't work for MT6358, as we have multiple resources (2) for one key.

To prepare mtk-pmic-keys to support MT6358, retrieve IRQs by name
instead of by index.

Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/20220121140323.4080640-2-mkorpershoek@baylibre.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2022-02-07 21:45:17 -08:00
..
2021-11-26 19:45:31 +01:00
2021-12-13 13:18:48 +05:30
2021-11-26 22:54:47 +01:00
2021-10-26 19:12:01 +02:00
2021-10-18 09:29:27 +02:00
2021-11-30 11:41:49 -07:00
2021-12-08 14:53:15 -05:00