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
of_regulator.h
Go to the documentation of this file.
1
/*
2
* OpenFirmware regulator support routines
3
*
4
*/
5
6
#ifndef __LINUX_OF_REG_H
7
#define __LINUX_OF_REG_H
8
9
struct
of_regulator_match
{
10
const
char
*
name
;
11
void
*
driver_data
;
12
struct
regulator_init_data
*
init_data
;
13
struct
device_node
*
of_node
;
14
};
15
16
#if defined(CONFIG_OF)
17
extern
struct
regulator_init_data
18
*
of_get_regulator_init_data
(
struct
device
*
dev
,
19
struct
device_node
*
node
);
20
extern
int
of_regulator_match
(
struct
device
*
dev
,
struct
device_node
*
node
,
21
struct
of_regulator_match
*matches,
22
unsigned
int
num_matches);
23
#else
24
static
inline
struct
regulator_init_data
25
*
of_get_regulator_init_data
(
struct
device
*
dev
,
26
struct
device_node
*
node
)
27
{
28
return
NULL
;
29
}
30
31
static
inline
int
of_regulator_match
(
struct
device
*
dev
,
32
struct
device_node
*
node
,
33
struct
of_regulator_match
*matches,
34
unsigned
int
num_matches)
35
{
36
return
0;
37
}
38
#endif
/* CONFIG_OF */
39
40
#endif
/* __LINUX_OF_REG_H */
Generated on Thu Jan 10 2013 14:52:28 for Linux Kernel by
1.8.2