#include <linux/delay.h>
#include <linux/gpio/consumer.h>
#include <linux/iio/iio.h>
#include <linux/module.h>
#include <linux/regulator/consumer.h>
#include <linux/spi/spi.h>
#define MAX1241_VAL_MASK …
#define MAX1241_SHUTDOWN_DELAY_USEC …
enum max1241_id { … };
struct max1241 { … };
static const struct iio_chan_spec max1241_channels[] = …;
static int max1241_read(struct max1241 *adc)
{ … }
static int max1241_read_raw(struct iio_dev *indio_dev,
struct iio_chan_spec const *chan,
int *val, int *val2, long mask)
{ … }
static const struct iio_info max1241_info = …;
static void max1241_disable_vref_action(void *data)
{ … }
static int max1241_probe(struct spi_device *spi)
{ … }
static const struct spi_device_id max1241_id[] = …;
static const struct of_device_id max1241_dt_ids[] = …;
MODULE_DEVICE_TABLE(of, max1241_dt_ids);
static struct spi_driver max1241_spi_driver = …;
module_spi_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;