#include <linux/of.h>
#include <linux/mfd/max77650.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/regulator/driver.h>
#define MAX77650_REGULATOR_EN_CTRL_MASK …
#define MAX77650_REGULATOR_EN_CTRL_BITS(_reg) …
#define MAX77650_REGULATOR_ENABLED …
#define MAX77650_REGULATOR_DISABLED …
#define MAX77650_REGULATOR_V_LDO_MASK …
#define MAX77650_REGULATOR_V_SBB_MASK …
#define MAX77651_REGULATOR_V_SBB1_MASK …
#define MAX77651_REGULATOR_V_SBB1_RANGE_MASK …
#define MAX77650_REGULATOR_AD_MASK …
#define MAX77650_REGULATOR_AD_DISABLED …
#define MAX77650_REGULATOR_AD_ENABLED …
#define MAX77650_REGULATOR_CURR_LIM_MASK …
enum { … };
struct max77650_regulator_desc { … };
static struct max77650_regulator_desc max77651_SBB1_desc;
static const unsigned int max77651_sbb1_volt_range_sel[] = …;
static const struct linear_range max77651_sbb1_volt_ranges[] = …;
static const unsigned int max77650_current_limit_table[] = …;
static int max77650_regulator_is_enabled(struct regulator_dev *rdev)
{ … }
static int max77650_regulator_enable(struct regulator_dev *rdev)
{ … }
static int max77650_regulator_disable(struct regulator_dev *rdev)
{ … }
static const struct regulator_ops max77650_regulator_LDO_ops = …;
static const struct regulator_ops max77650_regulator_SBB_ops = …;
static const struct regulator_ops max77651_SBB1_regulator_ops = …;
static struct max77650_regulator_desc max77650_LDO_desc = …;
static struct max77650_regulator_desc max77650_SBB0_desc = …;
static struct max77650_regulator_desc max77650_SBB1_desc = …;
static struct max77650_regulator_desc max77651_SBB1_desc = …;
static struct max77650_regulator_desc max77650_SBB2_desc = …;
static struct max77650_regulator_desc max77651_SBB2_desc = …;
static int max77650_regulator_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id max77650_regulator_of_match[] = …;
MODULE_DEVICE_TABLE(of, max77650_regulator_of_match);
static struct platform_driver max77650_regulator_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;