#include <linux/clk.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/mfd/tps68470.h>
#include <linux/module.h>
#include <linux/platform_data/tps68470.h>
#include <linux/platform_device.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>
struct tps68470_regulator_data { … };
#define TPS68470_REGULATOR(_name, _id, _ops, _n, \
_vr, _vm, _er, _em, _lr, _nlr) …
static const struct linear_range tps68470_ldo_ranges[] = …;
static const struct linear_range tps68470_core_ranges[] = …;
static int tps68470_regulator_enable(struct regulator_dev *rdev)
{ … }
static int tps68470_regulator_disable(struct regulator_dev *rdev)
{ … }
static const struct regulator_ops tps68470_regulator_ops = …;
static const struct regulator_ops tps68470_always_on_reg_ops = …;
static const struct regulator_desc regulators[] = …;
static int tps68470_regulator_probe(struct platform_device *pdev)
{ … }
static struct platform_driver tps68470_regulator_driver = …;
static int __init tps68470_regulator_init(void)
{ … }
subsys_initcall(tps68470_regulator_init);
static void __exit tps68470_regulator_exit(void)
{ … }
module_exit(tps68470_regulator_exit);
MODULE_ALIAS(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;