From e979180175348c0118f7e461fefa44dcc78e124a Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Mon, 26 Mar 2012 20:28:56 +0200
Subject: [PATCH 25/26] beaglebone: fix direction of gpio-keys

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
 arch/arm/mach-omap2/board-am335xevm.c |   20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/arch/arm/mach-omap2/board-am335xevm.c b/arch/arm/mach-omap2/board-am335xevm.c
index ed2ea68..ed03e14 100644
--- a/arch/arm/mach-omap2/board-am335xevm.c
+++ b/arch/arm/mach-omap2/board-am335xevm.c
@@ -1007,7 +1007,7 @@ static struct gpio_keys_button beaglebone_lcd7_gpio_keys[] = {
 	{
 		.code                   = KEY_LEFT,
 		.gpio                   = GPIO_TO_PIN(1, 16),
-		.active_low             = false,
+		.active_low             = true,
 		.desc                   = "left",
 		.type                   = EV_KEY,
 		.wakeup                 = 1,
@@ -1015,7 +1015,7 @@ static struct gpio_keys_button beaglebone_lcd7_gpio_keys[] = {
 	{
 		.code                   = KEY_RIGHT,
 		.gpio                   = GPIO_TO_PIN(1, 17),
-		.active_low             = false,
+		.active_low             = true,
 		.desc                   = "right",
 		.type                   = EV_KEY,
 		.wakeup                 = 1,
@@ -1023,7 +1023,7 @@ static struct gpio_keys_button beaglebone_lcd7_gpio_keys[] = {
 	{
 		.code                   = KEY_UP,
 		.gpio                   = GPIO_TO_PIN(1, 19),
-		.active_low             = false,
+		.active_low             = true,
 		.desc                   = "up",
 		.type                   = EV_KEY,
 		.wakeup                 = 1,
@@ -1031,7 +1031,7 @@ static struct gpio_keys_button beaglebone_lcd7_gpio_keys[] = {
 	{
 		.code                   = KEY_DOWN,
 		.gpio                   = GPIO_TO_PIN(3, 16),
-		.active_low             = false,
+		.active_low             = true,
 		.desc                   = "down",
 		.type                   = EV_KEY,
 		.wakeup                 = 1,
@@ -1039,7 +1039,7 @@ static struct gpio_keys_button beaglebone_lcd7_gpio_keys[] = {
 	{
 		.code                   = KEY_ENTER,
 		.gpio                   = GPIO_TO_PIN(3, 19),
-		.active_low             = false,
+		.active_low             = true,
 		.desc                   = "enter",
 		.type                   = EV_KEY,
 		.wakeup                 = 1,
@@ -1083,7 +1083,7 @@ static struct gpio_keys_button beaglebone_lcd3_gpio_keys[] = {
 	{
 		.code                   = KEY_LEFT,
 		.gpio                   = GPIO_TO_PIN(1, 16),
-		.active_low             = false,
+		.active_low             = true,
 		.desc                   = "left",
 		.type                   = EV_KEY,
 		.wakeup                 = 1,
@@ -1091,7 +1091,7 @@ static struct gpio_keys_button beaglebone_lcd3_gpio_keys[] = {
 	{
 		.code                   = KEY_RIGHT,
 		.gpio                   = GPIO_TO_PIN(1, 17),
-		.active_low             = false,
+		.active_low             = true,
 		.desc                   = "right",
 		.type                   = EV_KEY,
 		.wakeup                 = 1,
@@ -1099,7 +1099,7 @@ static struct gpio_keys_button beaglebone_lcd3_gpio_keys[] = {
 	{
 		.code                   = KEY_UP,
 		.gpio                   = GPIO_TO_PIN(3, 19),
-		.active_low             = false,
+		.active_low             = true,
 		.desc                   = "up",
 		.type                   = EV_KEY,
 		.wakeup                 = 1,
@@ -1107,7 +1107,7 @@ static struct gpio_keys_button beaglebone_lcd3_gpio_keys[] = {
 	{
 		.code                   = KEY_DOWN,
 		.gpio                   = GPIO_TO_PIN(1, 28),
-		.active_low             = false,
+		.active_low             = true,
 		.desc                   = "down",
 		.type                   = EV_KEY,
 		.wakeup                 = 1,
@@ -1115,7 +1115,7 @@ static struct gpio_keys_button beaglebone_lcd3_gpio_keys[] = {
 	{
 		.code                   = KEY_ENTER,
 		.gpio                   = GPIO_TO_PIN(0, 7),
-		.active_low             = false,
+		.active_low             = true,
 		.desc                   = "down",
 		.type                   = EV_KEY,
 		.wakeup                 = 1,
-- 
1.7.9.5

