#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/err.h>
#include <linux/of.h>
#include <linux/regulator/of_regulator.h>
#include <linux/platform_device.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>
#include <linux/mfd/88pm860x.h>
#include <linux/module.h>
struct pm8607_regulator_info { … };
static const unsigned int BUCK1_table[] = …;
static const unsigned int BUCK1_suspend_table[] = …;
static const unsigned int BUCK2_table[] = …;
static const unsigned int BUCK2_suspend_table[] = …;
static const unsigned int BUCK3_table[] = …;
static const unsigned int BUCK3_suspend_table[] = …;
static const unsigned int LDO1_table[] = …;
static const unsigned int LDO1_suspend_table[] = …;
static const unsigned int LDO2_table[] = …;
static const unsigned int LDO2_suspend_table[] = …;
static const unsigned int LDO3_table[] = …;
static const unsigned int LDO3_suspend_table[] = …;
static const unsigned int LDO4_table[] = …;
static const unsigned int LDO4_suspend_table[] = …;
static const unsigned int LDO5_table[] = …;
static const unsigned int LDO5_suspend_table[] = …;
static const unsigned int LDO6_table[] = …;
static const unsigned int LDO6_suspend_table[] = …;
static const unsigned int LDO7_table[] = …;
static const unsigned int LDO7_suspend_table[] = …;
static const unsigned int LDO8_table[] = …;
static const unsigned int LDO8_suspend_table[] = …;
static const unsigned int LDO9_table[] = …;
static const unsigned int LDO9_suspend_table[] = …;
static const unsigned int LDO10_table[] = …;
static const unsigned int LDO10_suspend_table[] = …;
static const unsigned int LDO12_table[] = …;
static const unsigned int LDO12_suspend_table[] = …;
static const unsigned int LDO13_table[] = …;
static const unsigned int LDO13_suspend_table[] = …;
static const unsigned int LDO14_table[] = …;
static const unsigned int LDO14_suspend_table[] = …;
static int pm8607_list_voltage(struct regulator_dev *rdev, unsigned index)
{ … }
static const struct regulator_ops pm8607_regulator_ops = …;
static const struct regulator_ops pm8606_preg_ops = …;
#define PM8606_PREG(ereg, ebit) …
#define PM8607_DVC(vreg, ureg, ubit, ereg, ebit) …
#define PM8607_LDO(_id, vreg, shift, ereg, ebit) …
static struct pm8607_regulator_info pm8607_regulator_info[] = …;
static struct pm8607_regulator_info pm8606_regulator_info[] = …;
static int pm8607_regulator_probe(struct platform_device *pdev)
{ … }
static const struct platform_device_id pm8607_regulator_driver_ids[] = …;
MODULE_DEVICE_TABLE(platform, pm8607_regulator_driver_ids);
static struct platform_driver pm8607_regulator_driver = …;
static int __init pm8607_regulator_init(void)
{ … }
subsys_initcall(pm8607_regulator_init);
static void __exit pm8607_regulator_exit(void)
{ … }
module_exit(pm8607_regulator_exit);
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_ALIAS(…) …;