#include <linux/module.h>
#include <linux/i2c.h>
#include <linux/of.h>
#include <linux/regulator/driver.h>
#include <linux/regmap.h>
static const struct regulator_ops pg86x_ops = …;
static const struct linear_range pg86x_buck1_ranges[] = …;
static const struct linear_range pg86x_buck2_ranges[] = …;
static const struct regulator_desc pg86x_regulators[] = …;
static const struct regmap_config pg86x_regmap = …;
static int pg86x_i2c_probe(struct i2c_client *i2c)
{ … }
static const struct of_device_id __maybe_unused pg86x_dt_ids[] = …;
MODULE_DEVICE_TABLE(of, pg86x_dt_ids);
static const struct i2c_device_id pg86x_i2c_id[] = …;
MODULE_DEVICE_TABLE(i2c, pg86x_i2c_id);
static struct i2c_driver pg86x_regulator_driver = …;
module_i2c_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;