From 286f377389ab953c41b76451b8b8e12d8935cf0e Mon Sep 17 00:00:00 2001 From: Ryan Leung Date: Sat, 16 May 2026 10:46:33 +1000 Subject: [PATCH] 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 --- package/kernel/button-hotplug/src/button-hotplug.c | 2 ++ 1 file changed, 2 insertions(+) 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"), }; -- 2.47.3