#include <linux/interrupt.h>
#include <linux/fs.h>
#include <linux/device.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/sysfs.h>
#include <linux/regulator/consumer.h>
#include <linux/iio/iio.h>
#include <linux/iio/sysfs.h>
#include "ad5686.h"
static const char * const ad5686_powerdown_modes[] = …;
static int ad5686_get_powerdown_mode(struct iio_dev *indio_dev,
const struct iio_chan_spec *chan)
{ … }
static int ad5686_set_powerdown_mode(struct iio_dev *indio_dev,
const struct iio_chan_spec *chan,
unsigned int mode)
{ … }
static const struct iio_enum ad5686_powerdown_mode_enum = …;
static ssize_t ad5686_read_dac_powerdown(struct iio_dev *indio_dev,
uintptr_t private, const struct iio_chan_spec *chan, char *buf)
{ … }
static ssize_t ad5686_write_dac_powerdown(struct iio_dev *indio_dev,
uintptr_t private,
const struct iio_chan_spec *chan,
const char *buf,
size_t len)
{ … }
static int ad5686_read_raw(struct iio_dev *indio_dev,
struct iio_chan_spec const *chan,
int *val,
int *val2,
long m)
{ … }
static int ad5686_write_raw(struct iio_dev *indio_dev,
struct iio_chan_spec const *chan,
int val,
int val2,
long mask)
{ … }
static const struct iio_info ad5686_info = …;
static const struct iio_chan_spec_ext_info ad5686_ext_info[] = …;
#define AD5868_CHANNEL(chan, addr, bits, _shift) …
#define DECLARE_AD5693_CHANNELS(name, bits, _shift) …
#define DECLARE_AD5338_CHANNELS(name, bits, _shift) …
#define DECLARE_AD5686_CHANNELS(name, bits, _shift) …
#define DECLARE_AD5676_CHANNELS(name, bits, _shift) …
#define DECLARE_AD5679_CHANNELS(name, bits, _shift) …
DECLARE_AD5693_CHANNELS(…);
DECLARE_AD5693_CHANNELS(…);
DECLARE_AD5338_CHANNELS(…);
DECLARE_AD5338_CHANNELS(…);
DECLARE_AD5676_CHANNELS(…);
DECLARE_AD5679_CHANNELS(…);
DECLARE_AD5676_CHANNELS(…);
DECLARE_AD5679_CHANNELS(…);
DECLARE_AD5686_CHANNELS(…);
DECLARE_AD5686_CHANNELS(…);
DECLARE_AD5686_CHANNELS(…);
DECLARE_AD5693_CHANNELS(…);
DECLARE_AD5693_CHANNELS(…);
DECLARE_AD5693_CHANNELS(…);
static const struct ad5686_chip_info ad5686_chip_info_tbl[] = …;
int ad5686_probe(struct device *dev,
enum ad5686_supported_device_ids chip_type,
const char *name, ad5686_write_func write,
ad5686_read_func read)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
void ad5686_remove(struct device *dev)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;