#include <linux/err.h>
#include <linux/i2c.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/iio/iio.h>
#include <linux/iio/sysfs.h>
enum ltc2471_chips { … };
struct ltc2471_data { … };
#define LTC2471_VREF …
static int ltc2471_get_value(struct i2c_client *client)
{ … }
static int ltc2471_read_raw(struct iio_dev *indio_dev,
struct iio_chan_spec const *chan,
int *val, int *val2, long info)
{ … }
static const struct iio_chan_spec ltc2471_channel[] = …;
static const struct iio_chan_spec ltc2473_channel[] = …;
static const struct iio_info ltc2471_info = …;
static int ltc2471_i2c_probe(struct i2c_client *client)
{ … }
static const struct i2c_device_id ltc2471_i2c_id[] = …;
MODULE_DEVICE_TABLE(i2c, ltc2471_i2c_id);
static struct i2c_driver ltc2471_i2c_driver = …;
module_i2c_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;