Linux Kernel
3.7.1
|
#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") | |
EXPORT_SYMBOL_GPL | ( | wm8400_register_regulator | ) |
MODULE_ALIAS | ( | "platform:wm8400-regulator" | ) |
MODULE_AUTHOR | ( | "Mark Brown <[email protected]>" | ) |
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.
dev | The WM8400 device to operate on. |
reg | The regulator to control. |
initdata | Regulator initdata for the regulator. |
Definition at line 278 of file wm8400-regulator.c.