#include <linux/module.h>
#include <linux/i2c.h>
#include <linux/of.h>
#include <linux/regmap.h>
#include <linux/regulator/driver.h>
static const struct regulator_ops max8893_ops = …;
static const struct regulator_desc max8893_regulators[] = …;
static const struct regmap_config max8893_regmap = …;
static int max8893_probe(struct i2c_client *i2c)
{ … }
#ifdef CONFIG_OF
static const struct of_device_id max8893_dt_match[] = …;
MODULE_DEVICE_TABLE(of, max8893_dt_match);
#endif
static const struct i2c_device_id max8893_ids[] = …;
MODULE_DEVICE_TABLE(i2c, max8893_ids);
static struct i2c_driver max8893_driver = …;
module_i2c_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;