#include <linux/kernel.h>
#include <linux/bug.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>
#include <linux/regulator/of_regulator.h>
#include <linux/mfd/max77686.h>
#include <linux/mfd/max77686-private.h>
#include <dt-bindings/regulator/maxim,max77802.h>
#define MAX77802_RAMP_DELAY …
#define MAX77802_OPMODE_SHIFT_LDO …
#define MAX77802_OPMODE_BUCK234_SHIFT …
#define MAX77802_OPMODE_MASK …
#define MAX77802_VSEL_MASK …
#define MAX77802_DVS_VSEL_MASK …
#define MAX77802_RAMP_RATE_MASK_2BIT …
#define MAX77802_RAMP_RATE_SHIFT_2BIT …
#define MAX77802_RAMP_RATE_MASK_4BIT …
#define MAX77802_RAMP_RATE_SHIFT_4BIT …
#define MAX77802_STATUS_OFF …
#define MAX77802_OFF_PWRREQ …
#define MAX77802_LP_PWRREQ …
static const unsigned int max77802_buck234_ramp_table[] = …;
static const unsigned int max77802_buck16_ramp_table[] = …;
struct max77802_regulator_prv { … };
static inline unsigned int max77802_map_mode(unsigned int mode)
{ … }
static int max77802_get_opmode_shift(int id)
{ … }
static int max77802_set_suspend_disable(struct regulator_dev *rdev)
{ … }
static int max77802_set_mode(struct regulator_dev *rdev, unsigned int mode)
{ … }
static unsigned max77802_get_mode(struct regulator_dev *rdev)
{ … }
static int max77802_set_suspend_mode(struct regulator_dev *rdev,
unsigned int mode)
{ … }
static int max77802_enable(struct regulator_dev *rdev)
{ … }
static const struct regulator_ops max77802_ldo_ops_logic1 = …;
static const struct regulator_ops max77802_ldo_ops_logic2 = …;
static const struct regulator_ops max77802_buck_16_dvs_ops = …;
static const struct regulator_ops max77802_buck_234_ops = …;
static const struct regulator_ops max77802_buck_dvs_ops = …;
#define regulator_77802_desc_p_ldo(num, supply, log) …
#define regulator_77802_desc_n_ldo(num, supply, log) …
#define regulator_77802_desc_16_buck(num) …
#define regulator_77802_desc_234_buck(num) …
#define regulator_77802_desc_buck5(num) …
#define regulator_77802_desc_buck7_10(num) …
static const struct regulator_desc regulators[] = …;
static int max77802_pmic_probe(struct platform_device *pdev)
{ … }
static const struct platform_device_id max77802_pmic_id[] = …;
MODULE_DEVICE_TABLE(platform, max77802_pmic_id);
static struct platform_driver max77802_pmic_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;