gpio-button-hotplug: add volume button handling
authorChuanhong Guo <gch981213@gmail.com>
Sun, 4 Aug 2019 08:29:39 +0000 (16:29 +0800)
committerChuanhong Guo <gch981213@gmail.com>
Thu, 8 Aug 2019 13:00:59 +0000 (21:00 +0800)
This is used by PISEN WMB001N.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
package/kernel/gpio-button-hotplug/Makefile
package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c

index 216d23b76d7d2ec9f860c7c81ebbb0552470838d..ffbc19756c36938401bd2da1042bff98947dda87 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 include $(INCLUDE_DIR)/kernel.mk
 
 PKG_NAME:=gpio-button-hotplug
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 PKG_LICENSE:=GPL-2.0
 
 include $(INCLUDE_DIR)/package.mk
index edd03d2b62b86969f8478cb6a2511e5ee80289fd..3e8e0ea26846d054bf878343a01005210f9e3d34 100644 (file)
@@ -95,6 +95,8 @@ static struct bh_map button_map[] = {
        BH_MAP(KEY_RESTART,             "reset"),
        BH_MAP(KEY_RFKILL,              "rfkill"),
        BH_MAP(KEY_VIDEO,               "video"),
+       BH_MAP(KEY_VOLUMEDOWN,          "volume_down"),
+       BH_MAP(KEY_VOLUMEUP,            "volume_up"),
        BH_MAP(KEY_WIMAX,               "wwan"),
        BH_MAP(KEY_WLAN,                "wlan"),
        BH_MAP(KEY_WPS_BUTTON,          "wps"),