2 * Definitions for the GPIO buttons interface driver
4 * Copyright (C) 2007,2008 Gabor Juhos <juhosg at 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_*) */
25 int threshold
; /* count threshold */
28 struct gpio_buttons_platform_data
{
29 struct gpio_button
*buttons
;
30 int nbuttons
; /* number of buttons */
31 int poll_interval
; /* polling interval */
34 #endif /* _GPIO_BUTTONS_H_ */