Dmitry Torokhov 2860586c58 Input: adp5588-keys - do not try to disable interrupt 0
Commit dc748812fca0 ("Input: adp5588-keys - add support for pure gpio")
made having interrupt line optional for the device, however it neglected
to update suspend and resume handlers that try to disable interrupts
for the duration of suspend.

Fix this by checking if interrupt number assigned to the i2c device is
not 0 before trying to disable or reenable it.

Fixes: dc748812fca0 ("Input: adp5588-keys - add support for pure gpio")
Link: https://lore.kernel.org/r/Zv_2jEMYSWDw2gKs@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2024-10-25 15:52:45 -07:00
..
2024-07-25 10:42:22 -07:00
2024-09-20 01:24:24 -07:00
2024-07-19 16:51:39 -07:00
2022-09-29 16:25:42 -07:00
2024-07-29 10:44:48 -07:00
2024-09-18 03:48:00 -07:00
2022-09-25 00:57:25 -07:00