Root/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_buttons.h>
16
17#ifdef CONFIG_RALINK_DEV_GPIO_BUTTONS
18void ramips_register_gpio_buttons(int id,
19                  unsigned poll_interval,
20                  unsigned nbuttons,
21                  struct gpio_button *buttons);
22#else
23static inline void ramips_register_gpio_buttons(int id,
24                        unsigned poll_interval,
25                        unsigned nbuttons,
26                        struct gpio_button *buttons)
27{
28}
29#endif
30
31#endif /* __ASM_MACH_RALINK_DEV_GPIO_BUTTONS_H */
32

Archive Download this file



interactive