2 * Definitions for the GPIO buttons interface driver
4 * Copyright (C) 2007-2010 Gabor Juhos <juhosg@openwrt.org>
6 * This file was based on: /include/linux/gpio_keys.h
7 * The original gpio_keys.h seems not to have a license.
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
15 #ifndef _GPIO_BUTTONS_H_
16 #define _GPIO_BUTTONS_H_
19 int gpio
; /* GPIO line number */
21 char *desc
; /* button description */
22 int type
; /* input event type (EV_KEY, EV_SW) */
23 int code
; /* input event code (KEY_*, SW_*) */
24 int threshold
; /* count threshold */
27 struct gpio_buttons_platform_data
{
28 struct gpio_button
*buttons
;
29 int nbuttons
; /* number of buttons */
30 int poll_interval
; /* polling interval */
33 #endif /* _GPIO_BUTTONS_H_ */