linux/drivers/iio/adc/ad7091r8.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Analog Devices AD7091R8 12-bit SAR ADC driver
 *
 * Copyright 2023 Analog Devices Inc.
 */

#include <linux/bitfield.h>
#include <linux/iio/iio.h>
#include <linux/module.h>
#include <linux/regmap.h>
#include <linux/gpio/consumer.h>
#include <linux/spi/spi.h>

#include "ad7091r-base.h"

#define AD7091R8_REG_ADDR_MSK
#define AD7091R8_RD_WR_FLAG_MSK
#define AD7091R8_REG_DATA_MSK

#define AD7091R_SPI_REGMAP_CONFIG(n)

static int ad7091r8_set_mode(struct ad7091r_state *st, enum ad7091r_mode mode)
{}

static unsigned int ad7091r8_reg_result_chan_id(unsigned int val)
{}

#define AD7091R_SPI_CHIP_INFO(_n, _name)

#define AD7091R_SPI_CHIP_INFO_IRQ(_n, _name)

enum ad7091r8_info_ids {};

static const struct iio_chan_spec ad7091r2_channels[] =;

static const struct iio_chan_spec ad7091r4_channels[] =;

static const struct iio_chan_spec ad7091r4_channels_irq[] =;

static const struct iio_chan_spec ad7091r8_channels[] =;

static const struct iio_chan_spec ad7091r8_channels_irq[] =;

static void ad7091r_pulse_convst(struct ad7091r_state *st)
{}

static int ad7091r_regmap_bus_reg_read(void *context, unsigned int reg,
				       unsigned int *val)
{}

static int ad7091r_regmap_bus_reg_write(void *context, unsigned int reg,
					unsigned int val)
{}

static const struct regmap_bus ad7091r8_regmap_bus =;

static const struct ad7091r_chip_info ad7091r8_infos[] =;

static const struct regmap_config ad7091r2_reg_conf =;
static const struct regmap_config ad7091r4_reg_conf =;
static const struct regmap_config ad7091r8_reg_conf =;

static void ad7091r8_regmap_init(struct ad7091r_state *st,
				 const struct regmap_config *regmap_conf)
{}

static int ad7091r8_gpio_setup(struct ad7091r_state *st)
{}

static struct ad7091r_init_info ad7091r2_init_info =;

static struct ad7091r_init_info ad7091r4_init_info =;

static struct ad7091r_init_info ad7091r8_init_info =;

static int ad7091r8_spi_probe(struct spi_device *spi)
{}

static const struct of_device_id ad7091r8_of_match[] =;
MODULE_DEVICE_TABLE(of, ad7091r8_of_match);

static const struct spi_device_id ad7091r8_spi_id[] =;
MODULE_DEVICE_TABLE(spi, ad7091r8_spi_id);

static struct spi_driver ad7091r8_driver =;
module_spi_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_IMPORT_NS();