#include <linux/iio/iio.h>
#include <linux/iio/sysfs.h>
#include <linux/device.h>
#include <linux/mutex.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/stat.h>
#include "../common/ms_sensors/ms_sensors_i2c.h"
#define TSYS01_RESET …
#define TSYS01_CONVERSION_START …
#define TSYS01_ADC_READ …
#define TSYS01_PROM_READ …
#define TSYS01_PROM_WORDS_NB …
struct tsys01_dev { … };
static const int coeff_mul[] = …;
static int tsys01_read_temperature(struct iio_dev *indio_dev,
s32 *temperature)
{ … }
static int tsys01_read_raw(struct iio_dev *indio_dev,
struct iio_chan_spec const *channel, int *val,
int *val2, long mask)
{ … }
static const struct iio_chan_spec tsys01_channels[] = …;
static const struct iio_info tsys01_info = …;
static bool tsys01_crc_valid(u16 *n_prom)
{ … }
static int tsys01_read_prom(struct iio_dev *indio_dev)
{ … }
static int tsys01_probe(struct iio_dev *indio_dev, struct device *dev)
{ … }
static int tsys01_i2c_probe(struct i2c_client *client)
{ … }
static const struct i2c_device_id tsys01_id[] = …;
MODULE_DEVICE_TABLE(i2c, tsys01_id);
static const struct of_device_id tsys01_of_match[] = …;
MODULE_DEVICE_TABLE(of, tsys01_of_match);
static struct i2c_driver tsys01_driver = …;
module_i2c_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;
MODULE_IMPORT_NS(…);