#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/regulator/driver.h>
#include <linux/mfd/max14577.h>
#include <linux/mfd/max14577-private.h>
#include <linux/regulator/of_regulator.h>
static int max14577_reg_is_enabled(struct regulator_dev *rdev)
{ … }
static int max14577_reg_get_current_limit(struct regulator_dev *rdev)
{ … }
static int max14577_reg_set_current_limit(struct regulator_dev *rdev,
int min_uA, int max_uA)
{ … }
static const struct regulator_ops max14577_safeout_ops = …;
static const struct regulator_ops max14577_charger_ops = …;
#define MAX14577_SAFEOUT_REG …
#define MAX14577_CHARGER_REG …
static const struct regulator_desc max14577_supported_regulators[] = …;
static const struct regulator_ops max77836_ldo_ops = …;
#define MAX77836_LDO_REG(num) …
static const struct regulator_desc max77836_supported_regulators[] = …;
static struct regmap *max14577_get_regmap(struct max14577 *max14577,
int reg_id)
{ … }
static int max14577_regulator_probe(struct platform_device *pdev)
{ … }
static const struct platform_device_id max14577_regulator_id[] = …;
MODULE_DEVICE_TABLE(platform, max14577_regulator_id);
static struct platform_driver max14577_regulator_driver = …;
static int __init max14577_regulator_init(void)
{ … }
subsys_initcall(max14577_regulator_init);
static void __exit max14577_regulator_exit(void)
{ … }
module_exit(max14577_regulator_exit);
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;