#include <linux/bitfield.h>
#include <linux/gpio/consumer.h>
#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/of_platform.h>
#include <linux/regmap.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>
#include <linux/regulator/of_regulator.h>
#define MAX20411_UV_STEP …
#define MAX20411_BASE_UV …
#define MAX20411_MIN_SEL …
#define MAX20411_MAX_SEL …
#define MAX20411_VID_OFFSET …
#define MAX20411_VID_MASK …
#define MAX20411_SLEW_OFFSET …
#define MAX20411_SLEW_DVS_MASK …
#define MAX20411_SLEW_SR_MASK …
struct max20411 { … };
static const unsigned int max20411_slew_rates[] = …;
static int max20411_enable_time(struct regulator_dev *rdev)
{ … }
static const struct regmap_config max20411_regmap_config = …;
static const struct regulator_ops max20411_ops = …;
static const struct regulator_desc max20411_desc = …;
static int max20411_probe(struct i2c_client *client)
{ … }
static const struct of_device_id of_max20411_match_tbl[] = …;
MODULE_DEVICE_TABLE(of, of_max20411_match_tbl);
static const struct i2c_device_id max20411_id[] = …;
MODULE_DEVICE_TABLE(i2c, max20411_id);
static struct i2c_driver max20411_i2c_driver = …;
module_i2c_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;