linux/drivers/iio/adc/ad7091r-base.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * AD7091RX Analog to Digital converter driver
 *
 * Copyright 2014-2019 Analog Devices Inc.
 */

#ifndef __DRIVERS_IIO_ADC_AD7091R_BASE_H__
#define __DRIVERS_IIO_ADC_AD7091R_BASE_H__

#include <linux/regmap.h>

#define AD7091R_REG_RESULT
#define AD7091R_REG_CHANNEL
#define AD7091R_REG_CONF
#define AD7091R_REG_ALERT
#define AD7091R_REG_CH_LOW_LIMIT(ch)
#define AD7091R_REG_CH_HIGH_LIMIT(ch)
#define AD7091R_REG_CH_HYSTERESIS(ch)

/* AD7091R_REG_RESULT */
#define AD7091R5_REG_RESULT_CH_ID(x)
#define AD7091R8_REG_RESULT_CH_ID(x)
#define AD7091R_REG_RESULT_CONV_RESULT(x)

/* AD7091R_REG_CONF */
#define AD7091R_REG_CONF_INT_VREF
#define AD7091R_REG_CONF_ALERT_EN
#define AD7091R_REG_CONF_AUTO
#define AD7091R_REG_CONF_CMD

#define AD7091R_REG_CONF_MODE_MASK

/* AD7091R_REG_CH_LIMIT */
#define AD7091R_HIGH_LIMIT
#define AD7091R_LOW_LIMIT

#define AD7091R_CHANNEL(idx, bits, ev, num_ev)

struct device;
struct gpio_desc;

enum ad7091r_mode {};

struct ad7091r_state {};

struct ad7091r_chip_info {};

struct ad7091r_init_info {};

extern const struct iio_event_spec ad7091r_events[3];

int ad7091r_probe(struct device *dev, const struct ad7091r_init_info *init_info,
		  int irq);

bool ad7091r_volatile_reg(struct device *dev, unsigned int reg);
bool ad7091r_writeable_reg(struct device *dev, unsigned int reg);

#endif /* __DRIVERS_IIO_ADC_AD7091R_BASE_H__ */