gpio-button-hotplug: do not error on interrupt attached keys
authorTim Harvey <tharvey@gateworks.com>
Tue, 28 Feb 2023 00:56:25 +0000 (16:56 -0800)
committerChristian Lamparter <chunkeey@gmail.com>
Thu, 18 May 2023 15:11:43 +0000 (17:11 +0200)
commit23845fa10bc135bfc7fd4380948b5965b9d20cb5
tree8b8ec4103872e405b082eb0cba8b725e734975c0
parent1465691319bf9fb20869945c8f7bb5e43da1cf3c
gpio-button-hotplug: do not error on interrupt attached keys

The Linux gpio-keys driver bindings allow for GPIO attached or interrupt
attached keys. Currently if an interrupt attached key is encountered
gpio_keys_button_probe() will fail due to not being able to get a gpio
descriptor:
gpio-keys: probe of gpio-keys failed with error -2

Skip the failure in the case of interrupt attached keys to resolve this.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c