8eb5e16906582e19cff286d59ed37e3523737628
[openwrt.git] / target / linux / ramips / files-3.7 / 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 */