Linux Kernel
3.7.1
|
#include <gpio_tilt.h>
Data Fields | |
struct gpio * | gpios |
int | nr_gpios |
struct gpio_tilt_axis * | axes |
int | nr_axes |
struct gpio_tilt_state * | states |
int | nr_states |
int | debounce_interval |
unsigned int | poll_interval |
int(* | enable )(struct device *dev) |
void(* | disable )(struct device *dev) |
struct gpio_tilt_platform_data : Array containing the gpios determining the tilt state : Number of gpios : Array of gpio_tilt_axis descriptions : Number of axes : Array of gpio_tilt_state entries describing the gpio state for specific tilts : Number of states available : debounce ticks interval in msecs : polling interval in msecs - for polling driver only : callback to enable the tilt switch : callback to disable the tilt switch
This structure contains gpio-tilt-switch configuration information that must be passed by platform code to the gpio-tilt input driver.
Definition at line 56 of file gpio_tilt.h.
struct gpio_tilt_axis* axes |
Definition at line 60 of file gpio_tilt.h.
int debounce_interval |
Definition at line 66 of file gpio_tilt.h.
Definition at line 57 of file gpio_tilt.h.
int nr_axes |
Definition at line 61 of file gpio_tilt.h.
int nr_gpios |
Definition at line 58 of file gpio_tilt.h.
int nr_states |
Definition at line 64 of file gpio_tilt.h.
unsigned int poll_interval |
Definition at line 68 of file gpio_tilt.h.
struct gpio_tilt_state* states |
Definition at line 63 of file gpio_tilt.h.