gpio-button-hotplug: add vendor button handling
authorMarek Behún <kabel@kernel.org>
Mon, 22 Jul 2024 13:33:17 +0000 (15:33 +0200)
committerRobert Marko <robimarko@gmail.com>
Fri, 2 Aug 2024 20:11:05 +0000 (22:11 +0200)
Handle the KEY_VENDOR key in gpio-button-hotplug driver. This is used
by Turris Omnia.

Signed-off-by: Marek Behún <kabel@kernel.org>
Link: https://github.com/openwrt/openwrt/pull/13799
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c

index e36494c2fe20a23b307bdd85ad499da849e0b622..17748219e8ccc3ce4b1774c46651b5d09f33b1ea 100644 (file)
@@ -100,6 +100,7 @@ static struct bh_map button_map[] = {
        BH_MAP(KEY_WIMAX,               "wwan"),
        BH_MAP(KEY_WLAN,                "wlan"),
        BH_MAP(KEY_WPS_BUTTON,          "wps"),
+       BH_MAP(KEY_VENDOR,              "vendor"),
 };
 
 /* -------------------------------------------------------------------------*/