button-hotplug: add KEY_SETUP and KEY_VENDOR handling
Add KEY_SETUP and KEY_VENDOR keys. Many Rockchip devices, including all of those in
e13cbab684 ("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>
This commit is contained in:
parent
1ef9914b2e
commit
286f377389
@ -87,6 +87,8 @@ static const struct bh_map button_map[] = {
|
|||||||
BH_MAP(KEY_POWER, "power"),
|
BH_MAP(KEY_POWER, "power"),
|
||||||
BH_MAP(KEY_POWER2, "reboot"),
|
BH_MAP(KEY_POWER2, "reboot"),
|
||||||
BH_MAP(KEY_RFKILL, "rfkill"),
|
BH_MAP(KEY_RFKILL, "rfkill"),
|
||||||
|
BH_MAP(KEY_SETUP, "setup"),
|
||||||
|
BH_MAP(KEY_VENDOR, "vendor"),
|
||||||
BH_MAP(KEY_WPS_BUTTON, "wps"),
|
BH_MAP(KEY_WPS_BUTTON, "wps"),
|
||||||
BH_MAP(KEY_WIMAX, "wwan"),
|
BH_MAP(KEY_WIMAX, "wwan"),
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user