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

#include <gpio-regulator.h>

Data Fields

const charsupply_name
 
int enable_gpio
 
unsigned enable_high:1
 
unsigned enabled_at_boot:1
 
unsigned startup_delay
 
struct gpiogpios
 
int nr_gpios
 
struct gpio_regulator_statestates
 
int nr_states
 
enum regulator_type type
 
struct regulator_init_datainit_data
 

Detailed Description

struct gpio_regulator_config - config structure : Name of the regulator supply : GPIO to use for enable control set to -EINVAL if not used : Polarity of enable GPIO 1 = Active high, 0 = Active low : Whether regulator has been enabled at boot or not. 1 = Yes, 0 = No This is used to keep the regulator at the default state : Start-up time in microseconds : Array containing the gpios needed to control the setting of the regulator : Number of gpios : Array of gpio_regulator_state entries describing the gpio state for specific voltages : Number of states available : either REGULATOR_CURRENT or REGULATOR_VOLTAGE : regulator_init_data

This structure contains gpio-voltage regulator configuration information that must be passed by platform code to the gpio-voltage regulator driver.

Definition at line 69 of file gpio-regulator.h.

Field Documentation

int enable_gpio

Definition at line 72 of file gpio-regulator.h.

unsigned enable_high

Definition at line 73 of file gpio-regulator.h.

unsigned enabled_at_boot

Definition at line 74 of file gpio-regulator.h.

struct gpio* gpios

Definition at line 77 of file gpio-regulator.h.

Definition at line 84 of file gpio-regulator.h.

int nr_gpios

Definition at line 78 of file gpio-regulator.h.

int nr_states

Definition at line 81 of file gpio-regulator.h.

unsigned startup_delay

Definition at line 75 of file gpio-regulator.h.

Definition at line 80 of file gpio-regulator.h.

const char* supply_name

Definition at line 70 of file gpio-regulator.h.

Definition at line 83 of file gpio-regulator.h.


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