#include <linux/delay.h>
#include <linux/gpio/consumer.h>
#include <linux/iio/iio.h>
#include <linux/limits.h>
#include <linux/module.h>
#include <linux/regulator/consumer.h>
#include <linux/slab.h>
#include <linux/spi/spi.h>
struct x9250_cfg { … };
struct x9250 { … };
#define X9250_ID …
#define X9250_CMD_RD_WCR(_p) …
#define X9250_CMD_WR_WCR(_p) …
static int x9250_write8(struct x9250 *x9250, u8 cmd, u8 val)
{ … }
static int x9250_read8(struct x9250 *x9250, u8 cmd, u8 *val)
{ … }
#define X9250_CHANNEL(ch) …
static const struct iio_chan_spec x9250_channels[] = …;
static int x9250_read_raw(struct iio_dev *indio_dev, struct iio_chan_spec const *chan,
int *val, int *val2, long mask)
{ … }
static int x9250_read_avail(struct iio_dev *indio_dev, struct iio_chan_spec const *chan,
const int **vals, int *type, int *length, long mask)
{ … }
static int x9250_write_raw(struct iio_dev *indio_dev, struct iio_chan_spec const *chan,
int val, int val2, long mask)
{ … }
static const struct iio_info x9250_info = …;
enum x9250_type { … };
static const struct x9250_cfg x9250_cfg[] = …;
static const char *const x9250_regulator_names[] = …;
static int x9250_probe(struct spi_device *spi)
{ … }
static const struct of_device_id x9250_of_match[] = …;
MODULE_DEVICE_TABLE(of, x9250_of_match);
static const struct spi_device_id x9250_id_table[] = …;
MODULE_DEVICE_TABLE(spi, x9250_id_table);
static struct spi_driver x9250_spi_driver = …;
module_spi_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;