#include <linux/i2c.h>
#include <linux/module.h>
#include "ad525x_dpot.h"
static int write_d8(void *client, u8 val)
{ … }
static int write_r8d8(void *client, u8 reg, u8 val)
{ … }
static int write_r8d16(void *client, u8 reg, u16 val)
{ … }
static int read_d8(void *client)
{ … }
static int read_r8d8(void *client, u8 reg)
{ … }
static int read_r8d16(void *client, u8 reg)
{ … }
static const struct ad_dpot_bus_ops bops = …;
static int ad_dpot_i2c_probe(struct i2c_client *client)
{ … }
static void ad_dpot_i2c_remove(struct i2c_client *client)
{ … }
static const struct i2c_device_id ad_dpot_id[] = …;
MODULE_DEVICE_TABLE(i2c, ad_dpot_id);
static struct i2c_driver ad_dpot_i2c_driver = …;
module_i2c_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;