#include <linux/device.h>
#include <linux/module.h>
#include <linux/regulator/consumer.h>
#include <linux/spi/spi.h>
#include <linux/iio/iio.h>
#include <linux/iio/adc/ad_sigma_delta.h>
#define MAX11205_BIT_SCALE …
#define MAX11205A_OUT_DATA_RATE …
#define MAX11205B_OUT_DATA_RATE …
enum max11205_chip_type { … };
struct max11205_chip_info { … };
struct max11205_state { … };
static const struct ad_sigma_delta_info max11205_sigma_delta_info = …;
static int max11205_read_raw(struct iio_dev *indio_dev,
struct iio_chan_spec const *chan,
int *val, int *val2, long mask)
{ … }
static const struct iio_info max11205_iio_info = …;
static const struct iio_chan_spec max11205_channels[] = …;
static const struct max11205_chip_info max11205_chip_info[] = …;
static void max11205_reg_disable(void *reg)
{ … }
static int max11205_probe(struct spi_device *spi)
{ … }
static const struct spi_device_id max11205_spi_ids[] = …;
MODULE_DEVICE_TABLE(spi, max11205_spi_ids);
static const struct of_device_id max11205_dt_ids[] = …;
MODULE_DEVICE_TABLE(of, max11205_dt_ids);
static struct spi_driver max11205_spi_driver = …;
module_spi_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_IMPORT_NS(…);