#include <linux/module.h>
#include <linux/iio/iio.h>
#include <linux/delay.h>
#include <linux/regulator/consumer.h>
#include <linux/iio/sysfs.h>
#include <linux/iio/buffer.h>
#include <linux/iio/triggered_buffer.h>
#include <linux/iio/trigger_consumer.h>
#include "ms5611.h"
#define MS5611_INIT_OSR(_cmd, _conv_usec, _rate) …
static const struct ms5611_osr ms5611_avail_pressure_osr[] = …;
static const struct ms5611_osr ms5611_avail_temp_osr[] = …;
static const char ms5611_show_osr[] = …;
static IIO_CONST_ATTR(oversampling_ratio_available, ms5611_show_osr);
static struct attribute *ms5611_attributes[] = …;
static const struct attribute_group ms5611_attribute_group = …;
static bool ms5611_prom_is_valid(u16 *prom, size_t len)
{ … }
static int ms5611_read_prom(struct iio_dev *indio_dev)
{ … }
static int ms5611_read_temp_and_pressure(struct iio_dev *indio_dev,
s32 *temp, s32 *pressure)
{ … }
static int ms5611_temp_and_pressure_compensate(struct ms5611_state *st,
s32 *temp, s32 *pressure)
{ … }
static int ms5607_temp_and_pressure_compensate(struct ms5611_state *st,
s32 *temp, s32 *pressure)
{ … }
static int ms5611_reset(struct iio_dev *indio_dev)
{ … }
static irqreturn_t ms5611_trigger_handler(int irq, void *p)
{ … }
static int ms5611_read_raw(struct iio_dev *indio_dev,
struct iio_chan_spec const *chan,
int *val, int *val2, long mask)
{ … }
static const struct ms5611_osr *ms5611_find_osr(int rate,
const struct ms5611_osr *osr,
size_t count)
{ … }
static int ms5611_write_raw(struct iio_dev *indio_dev,
struct iio_chan_spec const *chan,
int val, int val2, long mask)
{ … }
static const unsigned long ms5611_scan_masks[] = …;
static const struct iio_chan_spec ms5611_channels[] = …;
static const struct iio_info ms5611_info = …;
static int ms5611_init(struct iio_dev *indio_dev)
{ … }
int ms5611_probe(struct iio_dev *indio_dev, struct device *dev,
const char *name, int type)
{ … }
EXPORT_SYMBOL_NS(…);
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;