Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
wm8400.h File Reference
#include <linux/regulator/machine.h>

Go to the source code of this file.

Data Structures

struct  wm8400_platform_data
 

Macros

#define WM8400_LDO1   0
 
#define WM8400_LDO2   1
 
#define WM8400_LDO3   2
 
#define WM8400_LDO4   3
 
#define WM8400_DCDC1   4
 
#define WM8400_DCDC2   5
 

Functions

int wm8400_register_regulator (struct device *dev, int reg, struct regulator_init_data *initdata)
 

Macro Definition Documentation

#define WM8400_DCDC1   4

Definition at line 30 of file wm8400.h.

#define WM8400_DCDC2   5

Definition at line 31 of file wm8400.h.

#define WM8400_LDO1   0

Definition at line 26 of file wm8400.h.

#define WM8400_LDO2   1

Definition at line 27 of file wm8400.h.

#define WM8400_LDO3   2

Definition at line 28 of file wm8400.h.

#define WM8400_LDO4   3

Definition at line 29 of file wm8400.h.

Function Documentation

int wm8400_register_regulator ( struct device dev,
int  reg,
struct regulator_init_data initdata 
)

wm8400_register_regulator - enable software control of a WM8400 regulator

This function enables software control of a WM8400 regulator via the regulator API. It is intended to be called from the platform_init() callback of the WM8400 MFD driver.

Parameters
devThe WM8400 device to operate on.
regThe regulator to control.
initdataRegulator initdata for the regulator.

Definition at line 278 of file wm8400-regulator.c.