#include <linux/err.h>
#include <linux/i2c.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/regulator/driver.h>
#include "pmbus.h"
static const struct regulator_desc __maybe_unused tda38640_reg_desc[] = …;
struct tda38640_data { … };
#define to_tda38640_data(x) …
static int tda38640_read_byte_data(struct i2c_client *client, int page, int reg)
{ … }
static int tda38640_write_byte_data(struct i2c_client *client, int page,
int reg, u8 byte)
{ … }
static int svid_mode(struct i2c_client *client, struct tda38640_data *data)
{ … }
static struct pmbus_driver_info tda38640_info = …;
static int tda38640_probe(struct i2c_client *client)
{ … }
static const struct i2c_device_id tda38640_id[] = …;
MODULE_DEVICE_TABLE(i2c, tda38640_id);
static const struct of_device_id __maybe_unused tda38640_of_match[] = …;
MODULE_DEVICE_TABLE(of, tda38640_of_match);
static struct i2c_driver tda38640_driver = …;
module_i2c_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_IMPORT_NS(…);