Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
wm8400-regulator.c File Reference
#include <linux/bug.h>
#include <linux/err.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/regulator/driver.h>
#include <linux/mfd/wm8400-private.h>

Go to the source code of this file.

Functions

int wm8400_register_regulator (struct device *dev, int reg, struct regulator_init_data *initdata)
 
 EXPORT_SYMBOL_GPL (wm8400_register_regulator)
 
 subsys_initcall (wm8400_regulator_init)
 
 module_exit (wm8400_regulator_exit)
 
 MODULE_AUTHOR ("Mark Brown <[email protected]>")
 
 MODULE_DESCRIPTION ("WM8400 regulator driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:wm8400-regulator")
 

Function Documentation

EXPORT_SYMBOL_GPL ( wm8400_register_regulator  )
MODULE_ALIAS ( "platform:wm8400-regulator )
MODULE_AUTHOR ( "Mark Brown <[email protected]>"  )
MODULE_DESCRIPTION ( "WM8400 regulator driver )
module_exit ( wm8400_regulator_exit  )
MODULE_LICENSE ( "GPL"  )
subsys_initcall ( wm8400_regulator_init  )
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.