#include <linux/module.h>
#include <linux/i2c.h>
#include <linux/iio/iio.h>
#include <linux/iio/sysfs.h>
#include <linux/delay.h>
#define T5403_DATA …
#define T5403_CALIB_DATA …
#define T5403_SLAVE_ADDR …
#define T5403_COMMAND …
#define T5403_MODE_SHIFT …
#define T5403_PT …
#define T5403_SCO …
#define T5403_MODE_LOW …
#define T5403_MODE_STANDARD …
#define T5403_MODE_HIGH …
#define T5403_MODE_ULTRA_HIGH …
#define T5403_I2C_MASK …
#define T5403_I2C_ADDR …
static const int t5403_pressure_conv_ms[] = …;
struct t5403_data { … };
#define T5403_C_U16(i) …
#define T5403_C(i) …
static int t5403_read(struct t5403_data *data, bool pressure)
{ … }
static int t5403_comp_pressure(struct t5403_data *data, int *val, int *val2)
{ … }
static int t5403_comp_temp(struct t5403_data *data, int *val)
{ … }
static int t5403_read_raw(struct iio_dev *indio_dev,
struct iio_chan_spec const *chan,
int *val, int *val2, long mask)
{ … }
static int t5403_write_raw(struct iio_dev *indio_dev,
struct iio_chan_spec const *chan,
int val, int val2, long mask)
{ … }
static const struct iio_chan_spec t5403_channels[] = …;
static IIO_CONST_ATTR_INT_TIME_AVAIL("0.002 0.008 0.016 0.066");
static struct attribute *t5403_attributes[] = …;
static const struct attribute_group t5403_attribute_group = …;
static const struct iio_info t5403_info = …;
static int t5403_probe(struct i2c_client *client)
{ … }
static const struct i2c_device_id t5403_id[] = …;
MODULE_DEVICE_TABLE(i2c, t5403_id);
static struct i2c_driver t5403_driver = …;
module_i2c_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;