#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/pmbus.h>
#include <linux/regulator/driver.h>
#include "pmbus.h"
static struct pmbus_platform_data pli1209bc_plat_data = …;
static int pli1209bc_read_word_data(struct i2c_client *client, int page,
int phase, int reg)
{ … }
#if IS_ENABLED(CONFIG_SENSORS_PLI1209BC_REGULATOR)
static const struct regulator_desc pli1209bc_reg_desc = …;
#endif
static struct pmbus_driver_info pli1209bc_info = …;
static int pli1209bc_probe(struct i2c_client *client)
{ … }
static const struct i2c_device_id pli1209bc_id[] = …;
MODULE_DEVICE_TABLE(i2c, pli1209bc_id);
#ifdef CONFIG_OF
static const struct of_device_id pli1209bc_of_match[] = …;
MODULE_DEVICE_TABLE(of, pli1209bc_of_match);
#endif
static struct i2c_driver pli1209bc_driver = …;
module_i2c_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_IMPORT_NS(…);