#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/err.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/platform_device.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>
#include <linux/mfd/aat2870.h>
struct aat2870_regulator { … };
static int aat2870_ldo_set_voltage_sel(struct regulator_dev *rdev,
unsigned selector)
{ … }
static int aat2870_ldo_get_voltage_sel(struct regulator_dev *rdev)
{ … }
static int aat2870_ldo_enable(struct regulator_dev *rdev)
{ … }
static int aat2870_ldo_disable(struct regulator_dev *rdev)
{ … }
static int aat2870_ldo_is_enabled(struct regulator_dev *rdev)
{ … }
static const struct regulator_ops aat2870_ldo_ops = …;
static const unsigned int aat2870_ldo_voltages[] = …;
#define AAT2870_LDO(ids) …
static struct aat2870_regulator aat2870_regulators[] = …;
static struct aat2870_regulator *aat2870_get_regulator(int id)
{ … }
static int aat2870_regulator_probe(struct platform_device *pdev)
{ … }
static struct platform_driver aat2870_regulator_driver = …;
static int __init aat2870_regulator_init(void)
{ … }
subsys_initcall(aat2870_regulator_init);
static void __exit aat2870_regulator_exit(void)
{ … }
module_exit(aat2870_regulator_exit);
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…) …;
MODULE_ALIAS(…) …;