ramips: add preliminary support for the Asus RT-N56U board
[openwrt.git] / target / linux / ramips / files / arch / mips / include / asm / mach-ralink / dev-gpio-buttons.h
1 /*
2 * Ralink SoC GPIO button support
3 *
4 * Copyright (C) 2010-2011 Gabor Juhos <juhosg@openwrt.org>
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published
8 * by the Free Software Foundation.
9 */
10
11 #ifndef __ASM_MACH_RALINK_DEV_GPIO_BUTTONS_H
12 #define __ASM_MACH_RALINK_DEV_GPIO_BUTTONS_H
13
14 #include <linux/input.h>
15 #include <linux/gpio_keys.h>
16
17 #ifdef CONFIG_RALINK_DEV_GPIO_BUTTONS
18 void
19 ramips_register_gpio_buttons(int id, unsigned poll_interval, unsigned nbuttons,
20 struct gpio_keys_button *buttons);
21 #else
22 static inline void
23 ramips_register_gpio_buttons(int id, unsigned poll_interval, unsigned nbuttons,
24 struct gpio_keys_button *buttons)
25 {
26 }
27 #endif
28
29 #endif /* __ASM_MACH_RALINK_DEV_GPIO_BUTTONS_H */
This page took 0.046894 seconds and 5 git commands to generate.