2010-01-30 17:25:20 +02:00
|
|
|
/*
|
|
|
|
* Ralink SoC GPIO button support
|
|
|
|
*
|
2011-01-26 22:48:33 +02:00
|
|
|
* Copyright (C) 2010-2011 Gabor Juhos <juhosg@openwrt.org>
|
2010-01-30 17:25:20 +02:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License version 2 as published
|
|
|
|
* by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ASM_MACH_RALINK_DEV_GPIO_BUTTONS_H
|
|
|
|
#define __ASM_MACH_RALINK_DEV_GPIO_BUTTONS_H
|
|
|
|
|
|
|
|
#include <linux/input.h>
|
2012-02-11 21:37:06 +02:00
|
|
|
#include <linux/gpio_keys.h>
|
2010-01-30 17:25:20 +02:00
|
|
|
|
|
|
|
#ifdef CONFIG_RALINK_DEV_GPIO_BUTTONS
|
2012-02-11 21:37:06 +02:00
|
|
|
void
|
|
|
|
ramips_register_gpio_buttons(int id, unsigned poll_interval, unsigned nbuttons,
|
|
|
|
struct gpio_keys_button *buttons);
|
2010-01-30 17:25:20 +02:00
|
|
|
#else
|
2012-02-11 21:37:06 +02:00
|
|
|
static inline void
|
|
|
|
ramips_register_gpio_buttons(int id, unsigned poll_interval, unsigned nbuttons,
|
|
|
|
struct gpio_keys_button *buttons)
|
2010-01-30 17:25:20 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __ASM_MACH_RALINK_DEV_GPIO_BUTTONS_H */
|