Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
gpio_tilt_platform_data Struct Reference

#include <gpio_tilt.h>

Data Fields

struct gpiogpios
 
int nr_gpios
 
struct gpio_tilt_axisaxes
 
int nr_axes
 
struct gpio_tilt_statestates
 
int nr_states
 
int debounce_interval
 
unsigned int poll_interval
 
int(* enable )(struct device *dev)
 
void(* disable )(struct device *dev)
 

Detailed Description

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.

Field Documentation

Definition at line 60 of file gpio_tilt.h.

int debounce_interval

Definition at line 66 of file gpio_tilt.h.

void(* disable)(struct device *dev)

Definition at line 70 of file gpio_tilt.h.

int(* enable)(struct device *dev)

Definition at line 69 of file gpio_tilt.h.

struct gpio* gpios

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.

Definition at line 63 of file gpio_tilt.h.


The documentation for this struct was generated from the following file: