x86: switch rdc to to gpio_keys_polled
[openwrt.git] / target / linux / x86 / patches-3.8 / 100-rdc_boards.patch
index 5880610..c70874a 100644 (file)
@@ -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,
 +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,
 +      { .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,
 +#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