linux/drivers/iio/adc/ti-ads8344.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * ADS8344 16-bit 8-Channel ADC driver
 *
 * Author: Gregory CLEMENT <[email protected]>
 *
 * Datasheet: https://www.ti.com/lit/ds/symlink/ads8344.pdf
 */

#include <linux/delay.h>
#include <linux/iio/buffer.h>
#include <linux/iio/iio.h>
#include <linux/module.h>
#include <linux/regulator/consumer.h>
#include <linux/spi/spi.h>

#define ADS8344_START
#define ADS8344_SINGLE_END
#define ADS8344_CHANNEL(channel)
#define ADS8344_CLOCK_INTERNAL

struct ads8344 {};

#define ADS8344_VOLTAGE_CHANNEL(chan, addr)

#define ADS8344_VOLTAGE_CHANNEL_DIFF(chan1, chan2, addr)

static const struct iio_chan_spec ads8344_channels[] =;

static int ads8344_adc_conversion(struct ads8344 *adc, int channel,
				  bool differential)
{}

static int ads8344_read_raw(struct iio_dev *iio,
			    struct iio_chan_spec const *channel, int *value,
			    int *shift, long mask)
{}

static const struct iio_info ads8344_info =;

static void ads8344_reg_disable(void *data)
{}

static int ads8344_probe(struct spi_device *spi)
{}

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

static struct spi_driver ads8344_driver =;
module_spi_driver();

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