aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/x86/patches-3.3
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2013-07-19 13:20:39 +0000
committerJonas Gorski <jogo@openwrt.org>2013-07-19 13:20:39 +0000
commit2f2a913440e36a5e476a0906ae46a9f05f90013c (patch)
treee8b9c6e7f05f80f2e501297c3ffee9e12235a7b3 /target/linux/x86/patches-3.3
parentadd3a26909cdbd77b33ea33ab2eca960c74cc587 (diff)
downloadmaster-187ad058-2f2a913440e36a5e476a0906ae46a9f05f90013c.tar.gz
master-187ad058-2f2a913440e36a5e476a0906ae46a9f05f90013c.tar.bz2
master-187ad058-2f2a913440e36a5e476a0906ae46a9f05f90013c.zip
x86: switch rdc to to gpio_keys_polled
gpio_buttons have been deprecated since a long time. Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37435 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/x86/patches-3.3')
-rw-r--r--target/linux/x86/patches-3.3/100-rdc_boards.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/target/linux/x86/patches-3.3/100-rdc_boards.patch b/target/linux/x86/patches-3.3/100-rdc_boards.patch
index 958bee0064..b3cbda226f 100644
--- a/target/linux/x86/patches-3.3/100-rdc_boards.patch
+++ b/target/linux/x86/patches-3.3/100-rdc_boards.patch
@@ -67,7 +67,7 @@
+
+/* Button */
+static struct platform_device rdc321x_buttons = {
-+ .name = "gpio-buttons",
++ .name = "gpio-keys-polled",
+ .id = -1,
+ .dev = {
+ .platform_data = &rdcplat_data.button_data,
@@ -187,7 +187,7 @@
+static struct gpio_led ar525w_leds[] = {
+ { .name = "rdc321x:dmz", .gpio = 1, .active_low = 1},
+};
-+static struct gpio_button ar525w_btns[] = {
++static struct gpio_keys_button ar525w_btns[] = {
+ {
+ .gpio = 6,
+ .code = BTN_0,
@@ -584,7 +584,7 @@
+ { .name = "rdc321x:usb1", .gpio = 1, .active_low = 1},
+};
+
-+static struct gpio_button sitecom_btns[] = {
++static struct gpio_keys_button sitecom_btns[] = {
+ {
+ .gpio = 6,
+ .code = BTN_0,
@@ -731,11 +731,11 @@
+#define _RDC_BOARDS_H__
+
+#include <linux/leds.h>
-+#include <linux/gpio_buttons.h>
++#include <linux/gpio_keys.h>
+
+struct rdc_platform_data {
+ struct gpio_led_platform_data led_data;
-+ struct gpio_buttons_platform_data button_data;
++ struct gpio_keys_platform_data button_data;
+};
+
+#endif