]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
button-hotplug: add KEY_SETUP and KEY_VENDOR handling 23396/head
authorRyan Leung <untilscour@protonmail.com>
Sat, 16 May 2026 00:46:33 +0000 (10:46 +1000)
committerRobert Marko <robimarko@gmail.com>
Mon, 18 May 2026 10:56:33 +0000 (12:56 +0200)
Add KEY_SETUP and KEY_VENDOR keys. Many Rockchip devices, including all of those in
e13cbab6840b ("rockchip: enable SARADC; add buttons hotplug and ADC kmods to default packages")
have one or both of these buttons.

Signed-off-by: Ryan Leung <untilscour@protonmail.com>
Link: https://github.com/openwrt/openwrt/pull/23396
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/kernel/button-hotplug/src/button-hotplug.c

index cec3c50a9442bc252c8af47289d8bd7baf76e3ee..86cfe5633f96beaad03acd672313133b3313abd7 100644 (file)
@@ -87,6 +87,8 @@ static const struct bh_map button_map[] = {
        BH_MAP(KEY_POWER,       "power"),
        BH_MAP(KEY_POWER2,      "reboot"),
        BH_MAP(KEY_RFKILL,      "rfkill"),
+       BH_MAP(KEY_SETUP,       "setup"),
+       BH_MAP(KEY_VENDOR,      "vendor"),
        BH_MAP(KEY_WPS_BUTTON,  "wps"),
        BH_MAP(KEY_WIMAX,       "wwan"),
 };