summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/at91sam9261ek
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-01-13 11:54:35 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2016-01-13 16:28:08 +0100
commit30b7c5ead35f8570cbd96d4344755a72a8f3307c (patch)
tree942d86cf6dbdf036c45a2329d10d3d4ffe3d99f5 /arch/arm/boards/at91sam9261ek
parentdcaf3adb5383acb4e17b02054602d2c14c0a80a5 (diff)
downloadbarebox-30b7c5ead35f8570cbd96d4344755a72a8f3307c.tar.gz
barebox-30b7c5ead35f8570cbd96d4344755a72a8f3307c.tar.xz
input: gpio-keys: Use KEY_* keycodes
The gpio-keys driver takes ascii key codes from platform_data and Linux keycodes from device tree. Convert the ascii keys over to Linux keycodes to get rid of the special cases in the driver. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/at91sam9261ek')
-rw-r--r--arch/arm/boards/at91sam9261ek/init.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/boards/at91sam9261ek/init.c b/arch/arm/boards/at91sam9261ek/init.c
index a0b0219191..6cb170192a 100644
--- a/arch/arm/boards/at91sam9261ek/init.c
+++ b/arch/arm/boards/at91sam9261ek/init.c
@@ -39,6 +39,7 @@
#include <readkey.h>
#include <led.h>
#include <spi/spi.h>
+#include <input/input.h>
static struct atmel_nand_data nand_pdata = {
.ale = 22,
@@ -235,13 +236,13 @@ static void ek_add_device_lcdc(void) {}
#ifdef CONFIG_KEYBOARD_GPIO
struct gpio_keys_button keys[] = {
{
- .code = BB_KEY_UP,
+ .code = KEY_UP,
.gpio = AT91_PIN_PA26,
}, {
- .code = BB_KEY_DOWN,
+ .code = KEY_DOWN,
.gpio = AT91_PIN_PA25,
}, {
- .code = BB_KEY_ENTER,
+ .code = KEY_ENTER,
.gpio = AT91_PIN_PA24,
},
};