#include <linux/mfd/atc260x/core.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/regulator/driver.h>
struct atc260x_regulator_data { … };
static const struct linear_range atc2603c_dcdc_voltage_ranges[] = …;
static const struct linear_range atc2609a_dcdc_voltage_ranges[] = …;
static const struct linear_range atc2609a_ldo_voltage_ranges0[] = …;
static const struct linear_range atc2609a_ldo_voltage_ranges1[] = …;
static const unsigned int atc260x_ldo_voltage_range_sel[] = …;
static int atc260x_dcdc_set_voltage_time_sel(struct regulator_dev *rdev,
unsigned int old_selector,
unsigned int new_selector)
{ … }
static int atc260x_ldo_set_voltage_time_sel(struct regulator_dev *rdev,
unsigned int old_selector,
unsigned int new_selector)
{ … }
static const struct regulator_ops atc260x_dcdc_ops = …;
static const struct regulator_ops atc260x_ldo_ops = …;
static const struct regulator_ops atc260x_ldo_bypass_ops = …;
static const struct regulator_ops atc260x_ldo_bypass_discharge_ops = …;
static const struct regulator_ops atc260x_dcdc_range_ops = …;
static const struct regulator_ops atc260x_ldo_range_pick_ops = …;
static const struct regulator_ops atc260x_dcdc_fixed_ops = …;
static const struct regulator_ops atc260x_ldo_fixed_ops = …;
static const struct regulator_ops atc260x_no_ops = …;
enum atc2603c_reg_ids { … };
#define atc2603c_reg_desc_dcdc(num, min, step, n_volt, vsel_h, vsel_l) …
#define atc2603c_reg_desc_dcdc_range(num, vsel_h, vsel_l) …
#define atc2603c_reg_desc_dcdc_fixed(num, min, step, n_volt, vsel_h, vsel_l) …
#define atc2603c_reg_desc_ldo(num, min, step, n_volt, vsel_h, vsel_l) …
#define atc2603c_reg_desc_ldo_fixed(num, min, step, n_volt, vsel_h, vsel_l) …
#define atc2603c_reg_desc_ldo_noops(num, vfixed) …
#define atc2603c_reg_desc_ldo_switch(num, min, step, n_volt, vsel_h, vsel_l) …
static const struct regulator_desc atc2603c_reg[] = …;
static const struct regulator_desc atc2603c_reg_dcdc2_ver_b = …;
enum atc2609a_reg_ids { … };
#define atc2609a_reg_desc_dcdc(num, en_bit) …
#define atc2609a_reg_desc_dcdc_range(num, en_bit) …
#define atc2609a_reg_desc_ldo(num) …
#define atc2609a_reg_desc_ldo_bypass(num) …
#define atc2609a_reg_desc_ldo_range_pick(num, n_range, n_volt) …
#define atc2609a_reg_desc_ldo_fixed(num) …
static const struct regulator_desc atc2609a_reg[] = …;
static int atc260x_regulator_probe(struct platform_device *pdev)
{ … }
static struct platform_driver atc260x_regulator_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;