#include <linux/delay.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/i2c.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/iio/iio.h>
#define ABP060MG_ERROR_MASK …
#define ABP060MG_RESP_TIME_MS …
#define ABP060MG_MIN_COUNTS …
#define ABP060MG_MAX_COUNTS …
#define ABP060MG_NUM_COUNTS …
enum abp_variant { … };
struct abp_config { … };
static struct abp_config abp_config[] = …;
struct abp_state { … };
static const struct iio_chan_spec abp060mg_channels[] = …;
static int abp060mg_get_measurement(struct abp_state *state, int *val)
{ … }
static int abp060mg_read_raw(struct iio_dev *indio_dev,
struct iio_chan_spec const *chan, int *val,
int *val2, long mask)
{ … }
static const struct iio_info abp060mg_info = …;
static void abp060mg_init_device(struct iio_dev *indio_dev, unsigned long id)
{ … }
static int abp060mg_probe(struct i2c_client *client)
{ … }
static const struct i2c_device_id abp060mg_id_table[] = …;
MODULE_DEVICE_TABLE(i2c, abp060mg_id_table);
static struct i2c_driver abp060mg_driver = …;
module_i2c_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;