gpio-button-hotplug: add volume button handling
authorChuanhong Guo <gch981213@gmail.com>
Sun, 4 Aug 2019 08:29:39 +0000 (16:29 +0800)
committerRISCi_ATOM <bob@bobcall.me>
Fri, 13 Sep 2019 20:05:07 +0000 (16:05 -0400)
This is used by PISEN WMB001N.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
(cherry picked from commit 11182349e1f31f873ebddd69d6b87dec638eaabf)

package/kernel/gpio-button-hotplug/Makefile
package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c

index 96f6b1cff4618e48a4ae26c62bb4baf17ed427b9..899063f5b456a6d9dbe77024bc1c150714d83323 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 73666952310e17a3a3a382c086d79fd683638b1d..81528a42211fec2d64fdc6f720f55d2d19381747 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"),