Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
include
linux
regulator
gpio-regulator.h
Go to the documentation of this file.
1
/*
2
* gpio-regulator.h
3
*
4
* Copyright 2011 Heiko Stuebner <
[email protected]
>
5
*
6
* based on fixed.h
7
*
8
* Copyright 2008 Wolfson Microelectronics PLC.
9
*
10
* Author: Mark Brown <
[email protected]
>
11
*
12
* Copyright (c) 2009 Nokia Corporation
13
* Roger Quadros <
[email protected]
>
14
*
15
* This program is free software; you can redistribute it and/or
16
* modify it under the terms of the GNU General Public License as
17
* published by the Free Software Foundation; either version 2 of the
18
* License, or (at your option) any later version.
19
*/
20
21
#ifndef __REGULATOR_GPIO_H
22
#define __REGULATOR_GPIO_H
23
24
struct
regulator_init_data
;
25
26
enum
regulator_type
;
27
39
struct
gpio_regulator_state
{
40
int
value
;
41
int
gpios
;
42
};
43
69
struct
gpio_regulator_config
{
70
const
char
*
supply_name
;
71
72
int
enable_gpio
;
73
unsigned
enable_high
:1;
74
unsigned
enabled_at_boot
:1;
75
unsigned
startup_delay
;
76
77
struct
gpio
*
gpios
;
78
int
nr_gpios
;
79
80
struct
gpio_regulator_state
*
states
;
81
int
nr_states
;
82
83
enum
regulator_type
type
;
84
struct
regulator_init_data
*
init_data
;
85
};
86
87
#endif
Generated on Thu Jan 10 2013 14:52:27 for Linux Kernel by
1.8.2