diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-04-29 07:36:43 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-04-29 07:36:43 +0000 |
commit | e96d52d198511789d66d8fb7bd9a0f3c3c9c0107 (patch) | |
tree | a91c5c6dbd1ccf52974ba5063918e1c171ebeb1a /target/linux/adm5120/files/arch/mips/include | |
parent | 19be4923e0a2dfa6dd173288fc0ead976a0f2b38 (diff) | |
download | mtk-20170518-e96d52d198511789d66d8fb7bd9a0f3c3c9c0107.zip mtk-20170518-e96d52d198511789d66d8fb7bd9a0f3c3c9c0107.tar.gz mtk-20170518-e96d52d198511789d66d8fb7bd9a0f3c3c9c0107.tar.bz2 |
adm5120: merge 3.3 patches
SVN-Revision: 31511
Diffstat (limited to 'target/linux/adm5120/files/arch/mips/include')
-rw-r--r-- | target/linux/adm5120/files/arch/mips/include/asm/mach-adm5120/adm5120_platform.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/target/linux/adm5120/files/arch/mips/include/asm/mach-adm5120/adm5120_platform.h b/target/linux/adm5120/files/arch/mips/include/asm/mach-adm5120/adm5120_platform.h index 0159301..952c7ad 100644 --- a/target/linux/adm5120/files/arch/mips/include/asm/mach-adm5120/adm5120_platform.h +++ b/target/linux/adm5120/files/arch/mips/include/asm/mach-adm5120/adm5120_platform.h @@ -20,7 +20,8 @@ #include <linux/mtd/map.h> #include <linux/mtd/partitions.h> #include <linux/mtd/nand.h> -#include <linux/gpio_buttons.h> +#include <linux/input.h> +#include <linux/gpio_keys.h> #include <linux/amba/bus.h> #include <linux/amba/serial.h> @@ -28,10 +29,8 @@ struct adm5120_flash_platform_data { void (*set_vpp)(struct map_info *, int); void (*switch_bank)(unsigned); u32 window_size; -#ifdef CONFIG_MTD_PARTITIONS unsigned int nr_parts; struct mtd_partition *parts; -#endif }; struct adm5120_switch_platform_data { @@ -68,8 +67,10 @@ extern void adm5120_add_device_uart(unsigned id) __init; extern void adm5120_add_device_nand(struct platform_nand_data *pdata) __init; extern void adm5120_add_device_switch(unsigned num_ports, u8 *vlan_map) __init; extern void adm5120_add_device_gpio(u32 disable_mask) __init; -extern void adm5120_add_device_gpio_buttons(unsigned nbuttons, - struct gpio_button *buttons) __init; +extern void adm5120_register_gpio_buttons(int id, + unsigned poll_interval, + unsigned nbuttons, + struct gpio_keys_button *buttons); #define GPIO_LED_DEF(g, n, t, a) { \ .name = (n), \ |