#include <linux/module.h>
#include <linux/i2c.h>
#include <linux/regmap.h>
#include <linux/regulator/driver.h>
enum fan53880_regulator_ids { … };
enum fan53880_registers { … };
#define FAN53880_ID …
static const struct regulator_ops fan53880_ops = …;
#define FAN53880_LDO(_num, _supply, _default) …
static const struct regulator_desc fan53880_regulators[] = …;
static const struct regmap_config fan53880_regmap = …;
static int fan53880_i2c_probe(struct i2c_client *i2c)
{ … }
static const struct of_device_id fan53880_dt_ids[] = …;
MODULE_DEVICE_TABLE(of, fan53880_dt_ids);
static const struct i2c_device_id fan53880_i2c_id[] = …;
MODULE_DEVICE_TABLE(i2c, fan53880_i2c_id);
static struct i2c_driver fan53880_regulator_driver = …;
module_i2c_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;