#include <linux/delay.h>
#include <linux/err.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/mfd/rohm-bd71828.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>
#include <linux/regulator/of_regulator.h>
struct reg_init { … };
struct bd71828_regulator_data { … };
static const struct reg_init buck1_inits[] = …;
static const struct reg_init buck2_inits[] = …;
static const struct reg_init buck6_inits[] = …;
static const struct reg_init buck7_inits[] = …;
static const struct linear_range bd71828_buck1267_volts[] = …;
static const struct linear_range bd71828_buck3_volts[] = …;
static const struct linear_range bd71828_buck4_volts[] = …;
static const struct linear_range bd71828_buck5_volts[] = …;
static const struct linear_range bd71828_ldo_volts[] = …;
static const unsigned int bd71828_ramp_delay[] = …;
static int buck_set_hw_dvs_levels(struct device_node *np,
const struct regulator_desc *desc,
struct regulator_config *cfg)
{ … }
static int ldo6_parse_dt(struct device_node *np,
const struct regulator_desc *desc,
struct regulator_config *cfg)
{ … }
static const struct regulator_ops bd71828_buck_ops = …;
static const struct regulator_ops bd71828_dvs_buck_ops = …;
static const struct regulator_ops bd71828_ldo_ops = …;
static const struct regulator_ops bd71828_ldo6_ops = …;
static const struct bd71828_regulator_data bd71828_rdata[] = …;
static int bd71828_probe(struct platform_device *pdev)
{ … }
static struct platform_driver bd71828_regulator = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;