#include <linux/iio/iio.h>
#include <linux/iio/sysfs.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/property.h>
#include <linux/spi/spi.h>
#define MAX5481_WRITE_WIPER …
#define MAX5481_COPY_AB_TO_NV …
#define MAX5481_COPY_NV_TO_AB …
#define MAX5481_MAX_POS …
enum max5481_variant { … };
struct max5481_cfg { … };
static const struct max5481_cfg max5481_cfg[] = …;
struct max5481_data { … };
#define MAX5481_CHANNEL …
static const struct iio_chan_spec max5481_channels[] = …;
static int max5481_write_cmd(struct max5481_data *data, u8 cmd, u16 val)
{ … }
static int max5481_read_raw(struct iio_dev *indio_dev,
struct iio_chan_spec const *chan,
int *val, int *val2, long mask)
{ … }
static int max5481_write_raw(struct iio_dev *indio_dev,
struct iio_chan_spec const *chan,
int val, int val2, long mask)
{ … }
static const struct iio_info max5481_info = …;
static const struct of_device_id max5481_match[] = …;
MODULE_DEVICE_TABLE(of, max5481_match);
static void max5481_wiper_save(void *data)
{ … }
static int max5481_probe(struct spi_device *spi)
{ … }
static const struct spi_device_id max5481_id_table[] = …;
MODULE_DEVICE_TABLE(spi, max5481_id_table);
static struct spi_driver max5481_driver = …;
module_spi_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;