#include <linux/mfd/hi6421-pmic.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/regulator/driver.h>
struct hi6421v530_regulator_info { … };
enum hi6421v530_regulator_id { … };
static const unsigned int ldo_3_voltages[] = …;
static const unsigned int ldo_9_11_voltages[] = …;
static const unsigned int ldo_15_16_voltages[] = …;
static const struct regulator_ops hi6421v530_ldo_ops;
#define HI6421V530_LDO_ENABLE_TIME …
#define HI6421V530_LDO(_ID, v_table, vreg, vmask, ereg, emask, \
odelay, ecomask, ecoamp) …
static struct hi6421v530_regulator_info hi6421v530_regulator_info[] = …;
static unsigned int hi6421v530_regulator_ldo_get_mode(
struct regulator_dev *rdev)
{ … }
static int hi6421v530_regulator_ldo_set_mode(struct regulator_dev *rdev,
unsigned int mode)
{ … }
static const struct regulator_ops hi6421v530_ldo_ops = …;
static int hi6421v530_regulator_probe(struct platform_device *pdev)
{ … }
static const struct platform_device_id hi6421v530_regulator_table[] = …;
MODULE_DEVICE_TABLE(platform, hi6421v530_regulator_table);
static struct platform_driver hi6421v530_regulator_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;