#include <linux/err.h>
#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>
#include <linux/of.h>
#include <linux/regulator/of_regulator.h>
#include <linux/regmap.h>
#include "da9210-regulator.h"
struct da9210 { … };
static const struct regmap_config da9210_regmap_config = …;
static const struct regulator_ops da9210_buck_ops = …;
#define DA9210_MIN_MV …
#define DA9210_MAX_MV …
#define DA9210_STEP_MV …
static const unsigned int da9210_buck_limits[] = …;
static const struct regulator_desc da9210_reg = …;
static irqreturn_t da9210_irq_handler(int irq, void *data)
{ … }
static const struct of_device_id __maybe_unused da9210_dt_ids[] = …;
MODULE_DEVICE_TABLE(of, da9210_dt_ids);
static int da9210_i2c_probe(struct i2c_client *i2c)
{ … }
static const struct i2c_device_id da9210_i2c_id[] = …;
MODULE_DEVICE_TABLE(i2c, da9210_i2c_id);
static struct i2c_driver da9210_regulator_driver = …;
module_i2c_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;