aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/gpio-button-hotplug
diff options
context:
space:
mode:
authorChuanhong Guo <gch981213@gmail.com>2019-08-04 16:29:39 +0800
committerChuanhong Guo <gch981213@gmail.com>2019-08-08 21:00:59 +0800
commit11182349e1f31f873ebddd69d6b87dec638eaabf (patch)
tree790d31be924c68703c692c99a8711e3060a2e7cc /package/kernel/gpio-button-hotplug
parent796ad2f7ef6fefcf821a3b21cadfdb7ef3126e95 (diff)
downloadupstream-11182349e1f31f873ebddd69d6b87dec638eaabf.tar.gz
upstream-11182349e1f31f873ebddd69d6b87dec638eaabf.tar.bz2
upstream-11182349e1f31f873ebddd69d6b87dec638eaabf.zip
gpio-button-hotplug: add volume button handling
This is used by PISEN WMB001N. Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'package/kernel/gpio-button-hotplug')
-rw-r--r--package/kernel/gpio-button-hotplug/Makefile2
-rw-r--r--package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/package/kernel/gpio-button-hotplug/Makefile b/package/kernel/gpio-button-hotplug/Makefile
index 216d23b76d..ffbc19756c 100644
--- a/package/kernel/gpio-button-hotplug/Makefile
+++ b/package/kernel/gpio-button-hotplug/Makefile
@@ -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
diff --git a/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c b/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c
index edd03d2b62..3e8e0ea268 100644
--- a/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c
+++ b/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c
@@ -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"),