diff options
author | Roshni Shah <roshni.shah@timesys.com> | 2014-01-07 22:13:43 -0500 |
---|---|---|
committer | Roshni Shah <roshni.shah@timesys.com> | 2014-01-07 22:13:43 -0500 |
commit | f07ab95956b74ec7e154397d1533f1bde670ec08 (patch) | |
tree | ffac10bbdfd2e6eed813d0118c7f52fa23c33ddd | |
parent | 9935621f5e99845161f17ad93448d9c9db5182a6 (diff) |
Quartz: Configured User Buttons on Quartz to report events on Sysfs interface.
-rw-r--r-- | arch/arm/mach-mvf/board-quartz.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-mvf/board-quartz.c b/arch/arm/mach-mvf/board-quartz.c index a97000665595..dde924e28181 100644 --- a/arch/arm/mach-mvf/board-quartz.c +++ b/arch/arm/mach-mvf/board-quartz.c @@ -337,12 +337,18 @@ static struct mxc_nand_platform_data mvf_data __initdata = { static struct gpio_keys_button mvf_gpio_btn[] = { { + .code = BTN_1, .desc = "button1", - .gpio = GPIO_BTN_1, + .gpio = GPIO_BTN_1, + .type = EV_KEY, + .active_low = 1, }, { + .code = BTN_2, .desc = "button2", .gpio = GPIO_BTN_2, + .type = EV_KEY, + .active_low = 1, }, }; |