From: Ryan Leung Date: Sat, 16 May 2026 00:46:33 +0000 (+1000) Subject: button-hotplug: add KEY_SETUP and KEY_VENDOR handling X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=286f377389a;p=thirdparty%2Fopenwrt.git button-hotplug: add KEY_SETUP and KEY_VENDOR handling 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 Link: https://github.com/openwrt/openwrt/pull/23396 Signed-off-by: Robert Marko --- diff --git a/package/kernel/button-hotplug/src/button-hotplug.c b/package/kernel/button-hotplug/src/button-hotplug.c index cec3c50a944..86cfe5633f9 100644 --- a/package/kernel/button-hotplug/src/button-hotplug.c +++ b/package/kernel/button-hotplug/src/button-hotplug.c @@ -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"), };