projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93a0476
)
rk3168_86v: add vol+ and vol- key
author
hjc
<hjc@rock-chips.com>
Mon, 28 Jan 2013 09:59:55 +0000
(17:59 +0800)
committer
hjc
<hjc@rock-chips.com>
Mon, 28 Jan 2013 09:59:55 +0000
(17:59 +0800)
arch/arm/mach-rk30/board-rk3168-86v.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-rk30/board-rk3168-86v.c
b/arch/arm/mach-rk30/board-rk3168-86v.c
index 4fe2ed589087008205a531c03fa6ca35c152d5d8..e1de29dde0bd1975459c6676b63d6527f041a890 100644
(file)
--- a/
arch/arm/mach-rk30/board-rk3168-86v.c
+++ b/
arch/arm/mach-rk30/board-rk3168-86v.c
@@
-87,6
+87,20
@@
static struct rk29_keys_button key_button[] = {
.gpio = INVALID_GPIO,
.active_low = PRESS_LEV_LOW,
},
+ {
+ .desc = "vol-",
+ .code = KEY_VOLUMEDOWN,
+ .adc_value = 150,
+ .gpio = INVALID_GPIO,
+ .active_low = PRESS_LEV_LOW,
+ },
+ {
+ .desc = "vol+",
+ .code = KEY_VOLUMEUP,
+ .adc_value = 1,
+ .gpio = INVALID_GPIO,
+ .active_low = PRESS_LEV_LOW,
+ },
};
struct rk29_keys_platform_data rk29_keys_pdata = {
.buttons = key_button,