/* * Definitions for the GPIO buttons interface driver * * Copyright (C) 2007-2010 Gabor Juhos <juhosg@openwrt.org> * * This file was based on: /include/linux/gpio_keys.h * The original gpio_keys.h seems not to have a license. * * 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 _GPIO_BUTTONS_H_#define _GPIO_BUTTONS_H_structgpio_button{intgpio;/* GPIO line number */intactive_low;char*desc;/* button description */inttype;/* input event type (EV_KEY, EV_SW) */intcode;/* input event code (KEY_*, SW_*) */intthreshold;/* count threshold */};structgpio_buttons_platform_data{structgpio_button*buttons;intnbuttons;/* number of buttons */intpoll_interval;/* polling interval */};#endif /* _GPIO_BUTTONS_H_ */