#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/init.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/regulator/of_regulator.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>
#include <linux/mfd/tps65217.h>
#define TPS65217_REGULATOR(_name, _id, _of_match, _ops, _n, _vr, _vm, _em, \
_t, _lr, _nlr, _sr, _sm) … \
static const unsigned int LDO1_VSEL_table[] = …;
static const struct linear_range tps65217_uv1_ranges[] = …;
static const struct linear_range tps65217_uv2_ranges[] = …;
static int tps65217_pmic_enable(struct regulator_dev *dev)
{ … }
static int tps65217_pmic_disable(struct regulator_dev *dev)
{ … }
static int tps65217_pmic_set_voltage_sel(struct regulator_dev *dev,
unsigned selector)
{ … }
static int tps65217_pmic_set_suspend_enable(struct regulator_dev *dev)
{ … }
static int tps65217_pmic_set_suspend_disable(struct regulator_dev *dev)
{ … }
static const struct regulator_ops tps65217_pmic_ops = …;
static const struct regulator_ops tps65217_pmic_ldo1_ops = …;
static const struct regulator_desc regulators[] = …;
static int tps65217_regulator_probe(struct platform_device *pdev)
{ … }
static struct platform_driver tps65217_regulator_driver = …;
static int __init tps65217_regulator_init(void)
{ … }
subsys_initcall(tps65217_regulator_init);
static void __exit tps65217_regulator_exit(void)
{ … }
module_exit(tps65217_regulator_exit);
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_ALIAS(…) …;
MODULE_LICENSE(…) …;