#include <linux/i2c.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pmbus.h>
#include "pmbus.h"
#define AHE50DC_PMBUS_READ_TEMP4 …
static int ahe50dc_fan_write_byte(struct i2c_client *client, int page, u8 value)
{ … }
static int ahe50dc_fan_read_word_data(struct i2c_client *client, int page, int phase, int reg)
{ … }
static struct pmbus_driver_info ahe50dc_fan_info = …;
static struct pmbus_platform_data ahe50dc_fan_data = …;
static int ahe50dc_fan_probe(struct i2c_client *client)
{ … }
static const struct i2c_device_id ahe50dc_fan_id[] = …;
MODULE_DEVICE_TABLE(i2c, ahe50dc_fan_id);
static const struct of_device_id __maybe_unused ahe50dc_fan_of_match[] = …;
MODULE_DEVICE_TABLE(of, ahe50dc_fan_of_match);
static struct i2c_driver ahe50dc_fan_driver = …;
module_i2c_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_IMPORT_NS(…);