2019-05-28 16:57:06 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
2013-02-13 06:47:00 +00:00
|
|
|
/*
|
2019-12-17 11:11:58 +00:00
|
|
|
* AD7904/AD7914/AD7923/AD7924/AD7908/AD7918/AD7928 SPI ADC driver
|
2013-02-13 06:47:00 +00:00
|
|
|
*
|
|
|
|
* Copyright 2011 Analog Devices Inc (from AD7923 Driver)
|
|
|
|
* Copyright 2012 CS Systemes d'Information
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/device.h>
|
|
|
|
#include <linux/kernel.h>
|
|
|
|
#include <linux/slab.h>
|
|
|
|
#include <linux/sysfs.h>
|
|
|
|
#include <linux/spi/spi.h>
|
2013-03-04 19:30:00 +00:00
|
|
|
#include <linux/regulator/consumer.h>
|
2013-02-13 06:47:00 +00:00
|
|
|
#include <linux/err.h>
|
|
|
|
#include <linux/delay.h>
|
|
|
|
#include <linux/module.h>
|
|
|
|
#include <linux/interrupt.h>
|
|
|
|
|
|
|
|
#include <linux/iio/iio.h>
|
|
|
|
#include <linux/iio/sysfs.h>
|
|
|
|
#include <linux/iio/buffer.h>
|
|
|
|
#include <linux/iio/trigger_consumer.h>
|
|
|
|
#include <linux/iio/triggered_buffer.h>
|
|
|
|
|
2019-02-22 20:31:57 +00:00
|
|
|
#define AD7923_WRITE_CR BIT(11) /* write control register */
|
|
|
|
#define AD7923_RANGE BIT(1) /* range to REFin */
|
|
|
|
#define AD7923_CODING BIT(0) /* coding is straight binary */
|
2013-02-13 06:47:00 +00:00
|
|
|
#define AD7923_PM_MODE_AS (1) /* auto shutdown */
|
|
|
|
#define AD7923_PM_MODE_FS (2) /* full shutdown */
|
|
|
|
#define AD7923_PM_MODE_OPS (3) /* normal operation */
|
|
|
|
#define AD7923_SEQUENCE_OFF (0) /* no sequence fonction */
|
|
|
|
#define AD7923_SEQUENCE_PROTECT (2) /* no interrupt write cycle */
|
|
|
|
#define AD7923_SEQUENCE_ON (3) /* continuous sequence */
|
|
|
|
|
|
|
|
|
2019-02-22 20:31:58 +00:00
|
|
|
#define AD7923_PM_MODE_WRITE(mode) ((mode) << 4) /* write mode */
|
|
|
|
#define AD7923_CHANNEL_WRITE(channel) ((channel) << 6) /* write channel */
|
|
|
|
#define AD7923_SEQUENCE_WRITE(sequence) ((((sequence) & 1) << 3) \
|
|
|
|
+ (((sequence) & 2) << 9))
|
2013-02-13 06:47:00 +00:00
|
|
|
/* write sequence fonction */
|
|
|
|
/* left shift for CR : bit 11 transmit in first */
|
|
|
|
#define AD7923_SHIFT_REGISTER 4
|
|
|
|
|
|
|
|
/* val = value, dec = left shift, bits = number of bits of the mask */
|
2019-02-22 20:31:58 +00:00
|
|
|
#define EXTRACT(val, dec, bits) (((val) >> (dec)) & ((1 << (bits)) - 1))
|
2013-02-13 06:47:00 +00:00
|
|
|
|
|
|
|
struct ad7923_state {
|
|
|
|
struct spi_device *spi;
|
|
|
|
struct spi_transfer ring_xfer[5];
|
|
|
|
struct spi_transfer scan_single_xfer[2];
|
|
|
|
struct spi_message ring_msg;
|
|
|
|
struct spi_message scan_single_msg;
|
2013-03-04 19:30:00 +00:00
|
|
|
|
|
|
|
struct regulator *reg;
|
|
|
|
|
|
|
|
unsigned int settings;
|
|
|
|
|
2013-02-13 06:47:00 +00:00
|
|
|
/*
|
|
|
|
* DMA (thus cache coherency maintenance) requires the
|
|
|
|
* transfer buffers to live in their own cache lines.
|
|
|
|
*/
|
|
|
|
__be16 rx_buf[4] ____cacheline_aligned;
|
|
|
|
__be16 tx_buf[4];
|
|
|
|
};
|
|
|
|
|
2013-03-04 19:30:00 +00:00
|
|
|
struct ad7923_chip_info {
|
|
|
|
const struct iio_chan_spec *channels;
|
|
|
|
unsigned int num_channels;
|
|
|
|
};
|
|
|
|
|
|
|
|
enum ad7923_id {
|
|
|
|
AD7904,
|
|
|
|
AD7914,
|
|
|
|
AD7924,
|
2019-12-17 11:11:58 +00:00
|
|
|
AD7908,
|
|
|
|
AD7918,
|
|
|
|
AD7928
|
2013-03-04 19:30:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#define AD7923_V_CHAN(index, bits) \
|
2013-02-13 06:47:00 +00:00
|
|
|
{ \
|
|
|
|
.type = IIO_VOLTAGE, \
|
|
|
|
.indexed = 1, \
|
|
|
|
.channel = index, \
|
2013-03-03 12:26:47 +00:00
|
|
|
.info_mask_separate = BIT(IIO_CHAN_INFO_RAW), \
|
|
|
|
.info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE), \
|
2013-02-13 06:47:00 +00:00
|
|
|
.address = index, \
|
|
|
|
.scan_index = index, \
|
|
|
|
.scan_type = { \
|
|
|
|
.sign = 'u', \
|
2013-03-04 19:30:00 +00:00
|
|
|
.realbits = (bits), \
|
2013-02-13 06:47:00 +00:00
|
|
|
.storagebits = 16, \
|
|
|
|
.endianness = IIO_BE, \
|
|
|
|
}, \
|
|
|
|
}
|
|
|
|
|
2013-03-04 19:30:00 +00:00
|
|
|
#define DECLARE_AD7923_CHANNELS(name, bits) \
|
|
|
|
const struct iio_chan_spec name ## _channels[] = { \
|
|
|
|
AD7923_V_CHAN(0, bits), \
|
|
|
|
AD7923_V_CHAN(1, bits), \
|
|
|
|
AD7923_V_CHAN(2, bits), \
|
|
|
|
AD7923_V_CHAN(3, bits), \
|
|
|
|
IIO_CHAN_SOFT_TIMESTAMP(4), \
|
|
|
|
}
|
|
|
|
|
2019-12-17 11:11:58 +00:00
|
|
|
#define DECLARE_AD7908_CHANNELS(name, bits) \
|
|
|
|
const struct iio_chan_spec name ## _channels[] = { \
|
|
|
|
AD7923_V_CHAN(0, bits), \
|
|
|
|
AD7923_V_CHAN(1, bits), \
|
|
|
|
AD7923_V_CHAN(2, bits), \
|
|
|
|
AD7923_V_CHAN(3, bits), \
|
|
|
|
AD7923_V_CHAN(4, bits), \
|
|
|
|
AD7923_V_CHAN(5, bits), \
|
|
|
|
AD7923_V_CHAN(6, bits), \
|
|
|
|
AD7923_V_CHAN(7, bits), \
|
|
|
|
IIO_CHAN_SOFT_TIMESTAMP(8), \
|
|
|
|
}
|
|
|
|
|
2013-03-04 19:30:00 +00:00
|
|
|
static DECLARE_AD7923_CHANNELS(ad7904, 8);
|
|
|
|
static DECLARE_AD7923_CHANNELS(ad7914, 10);
|
|
|
|
static DECLARE_AD7923_CHANNELS(ad7924, 12);
|
2019-12-17 11:11:58 +00:00
|
|
|
static DECLARE_AD7908_CHANNELS(ad7908, 8);
|
|
|
|
static DECLARE_AD7908_CHANNELS(ad7918, 10);
|
|
|
|
static DECLARE_AD7908_CHANNELS(ad7928, 12);
|
2013-03-04 19:30:00 +00:00
|
|
|
|
|
|
|
static const struct ad7923_chip_info ad7923_chip_info[] = {
|
|
|
|
[AD7904] = {
|
|
|
|
.channels = ad7904_channels,
|
|
|
|
.num_channels = ARRAY_SIZE(ad7904_channels),
|
|
|
|
},
|
|
|
|
[AD7914] = {
|
|
|
|
.channels = ad7914_channels,
|
|
|
|
.num_channels = ARRAY_SIZE(ad7914_channels),
|
|
|
|
},
|
|
|
|
[AD7924] = {
|
|
|
|
.channels = ad7924_channels,
|
|
|
|
.num_channels = ARRAY_SIZE(ad7924_channels),
|
|
|
|
},
|
2019-12-17 11:11:58 +00:00
|
|
|
[AD7908] = {
|
|
|
|
.channels = ad7908_channels,
|
|
|
|
.num_channels = ARRAY_SIZE(ad7908_channels),
|
|
|
|
},
|
|
|
|
[AD7918] = {
|
|
|
|
.channels = ad7918_channels,
|
|
|
|
.num_channels = ARRAY_SIZE(ad7918_channels),
|
|
|
|
},
|
|
|
|
[AD7928] = {
|
|
|
|
.channels = ad7928_channels,
|
|
|
|
.num_channels = ARRAY_SIZE(ad7928_channels),
|
|
|
|
},
|
2013-02-13 06:47:00 +00:00
|
|
|
};
|
|
|
|
|
2020-07-16 13:59:04 +00:00
|
|
|
/*
|
2013-02-13 06:47:00 +00:00
|
|
|
* ad7923_update_scan_mode() setup the spi transfer buffer for the new scan mask
|
2020-07-16 13:59:04 +00:00
|
|
|
*/
|
2013-02-13 06:47:00 +00:00
|
|
|
static int ad7923_update_scan_mode(struct iio_dev *indio_dev,
|
2019-02-22 20:31:56 +00:00
|
|
|
const unsigned long *active_scan_mask)
|
2013-02-13 06:47:00 +00:00
|
|
|
{
|
|
|
|
struct ad7923_state *st = iio_priv(indio_dev);
|
|
|
|
int i, cmd, len;
|
|
|
|
|
|
|
|
len = 0;
|
2019-12-17 11:11:58 +00:00
|
|
|
/*
|
|
|
|
* For this driver the last channel is always the software timestamp so
|
|
|
|
* skip that one.
|
|
|
|
*/
|
|
|
|
for_each_set_bit(i, active_scan_mask, indio_dev->num_channels - 1) {
|
2013-03-04 19:30:00 +00:00
|
|
|
cmd = AD7923_WRITE_CR | AD7923_CHANNEL_WRITE(i) |
|
2013-02-13 06:47:00 +00:00
|
|
|
AD7923_SEQUENCE_WRITE(AD7923_SEQUENCE_OFF) |
|
2013-03-04 19:30:00 +00:00
|
|
|
st->settings;
|
2013-02-13 06:47:00 +00:00
|
|
|
cmd <<= AD7923_SHIFT_REGISTER;
|
|
|
|
st->tx_buf[len++] = cpu_to_be16(cmd);
|
|
|
|
}
|
|
|
|
/* build spi ring message */
|
|
|
|
st->ring_xfer[0].tx_buf = &st->tx_buf[0];
|
|
|
|
st->ring_xfer[0].len = len;
|
|
|
|
st->ring_xfer[0].cs_change = 1;
|
|
|
|
|
|
|
|
spi_message_init(&st->ring_msg);
|
|
|
|
spi_message_add_tail(&st->ring_xfer[0], &st->ring_msg);
|
|
|
|
|
|
|
|
for (i = 0; i < len; i++) {
|
|
|
|
st->ring_xfer[i + 1].rx_buf = &st->rx_buf[i];
|
|
|
|
st->ring_xfer[i + 1].len = 2;
|
|
|
|
st->ring_xfer[i + 1].cs_change = 1;
|
|
|
|
spi_message_add_tail(&st->ring_xfer[i + 1], &st->ring_msg);
|
|
|
|
}
|
|
|
|
/* make sure last transfer cs_change is not set */
|
|
|
|
st->ring_xfer[i + 1].cs_change = 0;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2020-07-16 13:59:04 +00:00
|
|
|
/*
|
2013-02-13 06:47:00 +00:00
|
|
|
* ad7923_trigger_handler() bh of trigger launched polling to ring buffer
|
|
|
|
*
|
|
|
|
* Currently there is no option in this driver to disable the saving of
|
|
|
|
* timestamps within the ring.
|
2020-07-16 13:59:04 +00:00
|
|
|
*/
|
2013-02-13 06:47:00 +00:00
|
|
|
static irqreturn_t ad7923_trigger_handler(int irq, void *p)
|
|
|
|
{
|
|
|
|
struct iio_poll_func *pf = p;
|
|
|
|
struct iio_dev *indio_dev = pf->indio_dev;
|
|
|
|
struct ad7923_state *st = iio_priv(indio_dev);
|
|
|
|
int b_sent;
|
|
|
|
|
|
|
|
b_sent = spi_sync(st->spi, &st->ring_msg);
|
|
|
|
if (b_sent)
|
|
|
|
goto done;
|
|
|
|
|
2013-09-19 12:59:00 +00:00
|
|
|
iio_push_to_buffers_with_timestamp(indio_dev, st->rx_buf,
|
2019-02-22 20:31:56 +00:00
|
|
|
iio_get_time_ns(indio_dev));
|
2013-02-13 06:47:00 +00:00
|
|
|
|
|
|
|
done:
|
|
|
|
iio_trigger_notify_done(indio_dev->trig);
|
|
|
|
|
|
|
|
return IRQ_HANDLED;
|
|
|
|
}
|
|
|
|
|
2019-12-17 11:11:56 +00:00
|
|
|
static int ad7923_scan_direct(struct ad7923_state *st, unsigned int ch)
|
2013-02-13 06:47:00 +00:00
|
|
|
{
|
|
|
|
int ret, cmd;
|
|
|
|
|
2013-03-04 19:30:00 +00:00
|
|
|
cmd = AD7923_WRITE_CR | AD7923_CHANNEL_WRITE(ch) |
|
|
|
|
AD7923_SEQUENCE_WRITE(AD7923_SEQUENCE_OFF) |
|
|
|
|
st->settings;
|
2013-02-13 06:47:00 +00:00
|
|
|
cmd <<= AD7923_SHIFT_REGISTER;
|
|
|
|
st->tx_buf[0] = cpu_to_be16(cmd);
|
|
|
|
|
|
|
|
ret = spi_sync(st->spi, &st->scan_single_msg);
|
|
|
|
if (ret)
|
|
|
|
return ret;
|
|
|
|
|
|
|
|
return be16_to_cpu(st->rx_buf[0]);
|
|
|
|
}
|
|
|
|
|
2013-03-04 19:30:00 +00:00
|
|
|
static int ad7923_get_range(struct ad7923_state *st)
|
|
|
|
{
|
|
|
|
int vref;
|
|
|
|
|
|
|
|
vref = regulator_get_voltage(st->reg);
|
|
|
|
if (vref < 0)
|
|
|
|
return vref;
|
|
|
|
|
|
|
|
vref /= 1000;
|
|
|
|
|
|
|
|
if (!(st->settings & AD7923_RANGE))
|
|
|
|
vref *= 2;
|
|
|
|
|
|
|
|
return vref;
|
|
|
|
}
|
|
|
|
|
2013-02-13 06:47:00 +00:00
|
|
|
static int ad7923_read_raw(struct iio_dev *indio_dev,
|
|
|
|
struct iio_chan_spec const *chan,
|
|
|
|
int *val,
|
|
|
|
int *val2,
|
|
|
|
long m)
|
|
|
|
{
|
|
|
|
int ret;
|
|
|
|
struct ad7923_state *st = iio_priv(indio_dev);
|
|
|
|
|
|
|
|
switch (m) {
|
|
|
|
case IIO_CHAN_INFO_RAW:
|
2016-05-24 19:19:49 +00:00
|
|
|
ret = iio_device_claim_direct_mode(indio_dev);
|
|
|
|
if (ret)
|
|
|
|
return ret;
|
|
|
|
ret = ad7923_scan_direct(st, chan->address);
|
|
|
|
iio_device_release_direct_mode(indio_dev);
|
2013-02-13 06:47:00 +00:00
|
|
|
|
|
|
|
if (ret < 0)
|
|
|
|
return ret;
|
|
|
|
|
|
|
|
if (chan->address == EXTRACT(ret, 12, 4))
|
|
|
|
*val = EXTRACT(ret, 0, 12);
|
2013-03-04 19:30:00 +00:00
|
|
|
else
|
|
|
|
return -EIO;
|
2013-02-13 06:47:00 +00:00
|
|
|
|
|
|
|
return IIO_VAL_INT;
|
2013-03-04 19:30:00 +00:00
|
|
|
case IIO_CHAN_INFO_SCALE:
|
|
|
|
ret = ad7923_get_range(st);
|
|
|
|
if (ret < 0)
|
|
|
|
return ret;
|
|
|
|
*val = ret;
|
|
|
|
*val2 = chan->scan_type.realbits;
|
|
|
|
return IIO_VAL_FRACTIONAL_LOG2;
|
2013-02-13 06:47:00 +00:00
|
|
|
}
|
|
|
|
return -EINVAL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const struct iio_info ad7923_info = {
|
|
|
|
.read_raw = &ad7923_read_raw,
|
|
|
|
.update_scan_mode = ad7923_update_scan_mode,
|
|
|
|
};
|
|
|
|
|
|
|
|
static int ad7923_probe(struct spi_device *spi)
|
|
|
|
{
|
|
|
|
struct ad7923_state *st;
|
2013-07-23 08:58:00 +00:00
|
|
|
struct iio_dev *indio_dev;
|
2013-03-04 19:30:00 +00:00
|
|
|
const struct ad7923_chip_info *info;
|
2013-02-13 06:47:00 +00:00
|
|
|
int ret;
|
|
|
|
|
2013-07-23 08:58:00 +00:00
|
|
|
indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st));
|
2019-02-22 20:31:59 +00:00
|
|
|
if (!indio_dev)
|
2013-02-13 06:47:00 +00:00
|
|
|
return -ENOMEM;
|
|
|
|
|
|
|
|
st = iio_priv(indio_dev);
|
|
|
|
|
|
|
|
spi_set_drvdata(spi, indio_dev);
|
|
|
|
|
|
|
|
st->spi = spi;
|
2013-03-04 19:30:00 +00:00
|
|
|
st->settings = AD7923_CODING | AD7923_RANGE |
|
|
|
|
AD7923_PM_MODE_WRITE(AD7923_PM_MODE_OPS);
|
2013-02-13 06:47:00 +00:00
|
|
|
|
2013-03-04 19:30:00 +00:00
|
|
|
info = &ad7923_chip_info[spi_get_device_id(spi)->driver_data];
|
|
|
|
|
2013-02-13 06:47:00 +00:00
|
|
|
indio_dev->name = spi_get_device_id(spi)->name;
|
|
|
|
indio_dev->modes = INDIO_DIRECT_MODE;
|
2013-03-04 19:30:00 +00:00
|
|
|
indio_dev->channels = info->channels;
|
|
|
|
indio_dev->num_channels = info->num_channels;
|
2013-02-13 06:47:00 +00:00
|
|
|
indio_dev->info = &ad7923_info;
|
|
|
|
|
|
|
|
/* Setup default message */
|
|
|
|
|
|
|
|
st->scan_single_xfer[0].tx_buf = &st->tx_buf[0];
|
|
|
|
st->scan_single_xfer[0].len = 2;
|
|
|
|
st->scan_single_xfer[0].cs_change = 1;
|
|
|
|
st->scan_single_xfer[1].rx_buf = &st->rx_buf[0];
|
|
|
|
st->scan_single_xfer[1].len = 2;
|
|
|
|
|
|
|
|
spi_message_init(&st->scan_single_msg);
|
|
|
|
spi_message_add_tail(&st->scan_single_xfer[0], &st->scan_single_msg);
|
|
|
|
spi_message_add_tail(&st->scan_single_xfer[1], &st->scan_single_msg);
|
|
|
|
|
2013-07-23 08:58:00 +00:00
|
|
|
st->reg = devm_regulator_get(&spi->dev, "refin");
|
|
|
|
if (IS_ERR(st->reg))
|
|
|
|
return PTR_ERR(st->reg);
|
|
|
|
|
2013-03-04 19:30:00 +00:00
|
|
|
ret = regulator_enable(st->reg);
|
|
|
|
if (ret)
|
2013-07-23 08:58:00 +00:00
|
|
|
return ret;
|
2013-03-04 19:30:00 +00:00
|
|
|
|
2013-02-13 06:47:00 +00:00
|
|
|
ret = iio_triggered_buffer_setup(indio_dev, NULL,
|
2019-02-22 20:31:56 +00:00
|
|
|
&ad7923_trigger_handler, NULL);
|
2013-02-13 06:47:00 +00:00
|
|
|
if (ret)
|
2013-03-04 19:30:00 +00:00
|
|
|
goto error_disable_reg;
|
2013-02-13 06:47:00 +00:00
|
|
|
|
|
|
|
ret = iio_device_register(indio_dev);
|
|
|
|
if (ret)
|
|
|
|
goto error_cleanup_ring;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
error_cleanup_ring:
|
|
|
|
iio_triggered_buffer_cleanup(indio_dev);
|
2013-03-04 19:30:00 +00:00
|
|
|
error_disable_reg:
|
|
|
|
regulator_disable(st->reg);
|
2013-02-13 06:47:00 +00:00
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int ad7923_remove(struct spi_device *spi)
|
|
|
|
{
|
|
|
|
struct iio_dev *indio_dev = spi_get_drvdata(spi);
|
2013-03-04 19:30:00 +00:00
|
|
|
struct ad7923_state *st = iio_priv(indio_dev);
|
2013-02-13 06:47:00 +00:00
|
|
|
|
|
|
|
iio_device_unregister(indio_dev);
|
|
|
|
iio_triggered_buffer_cleanup(indio_dev);
|
2013-03-04 19:30:00 +00:00
|
|
|
regulator_disable(st->reg);
|
2013-02-13 06:47:00 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const struct spi_device_id ad7923_id[] = {
|
2013-03-04 19:30:00 +00:00
|
|
|
{"ad7904", AD7904},
|
|
|
|
{"ad7914", AD7914},
|
|
|
|
{"ad7923", AD7924},
|
|
|
|
{"ad7924", AD7924},
|
2019-12-17 11:11:58 +00:00
|
|
|
{"ad7908", AD7908},
|
|
|
|
{"ad7918", AD7918},
|
|
|
|
{"ad7928", AD7928},
|
2013-02-13 06:47:00 +00:00
|
|
|
{}
|
|
|
|
};
|
|
|
|
MODULE_DEVICE_TABLE(spi, ad7923_id);
|
|
|
|
|
2019-12-17 11:11:57 +00:00
|
|
|
static const struct of_device_id ad7923_of_match[] = {
|
|
|
|
{ .compatible = "adi,ad7904", },
|
|
|
|
{ .compatible = "adi,ad7914", },
|
|
|
|
{ .compatible = "adi,ad7923", },
|
|
|
|
{ .compatible = "adi,ad7924", },
|
2019-12-17 11:11:58 +00:00
|
|
|
{ .compatible = "adi,ad7908", },
|
|
|
|
{ .compatible = "adi,ad7918", },
|
|
|
|
{ .compatible = "adi,ad7928", },
|
2019-12-17 11:11:57 +00:00
|
|
|
{ },
|
|
|
|
};
|
|
|
|
MODULE_DEVICE_TABLE(of, ad7923_of_match);
|
|
|
|
|
2013-02-13 06:47:00 +00:00
|
|
|
static struct spi_driver ad7923_driver = {
|
|
|
|
.driver = {
|
|
|
|
.name = "ad7923",
|
2019-12-17 11:11:57 +00:00
|
|
|
.of_match_table = ad7923_of_match,
|
2013-02-13 06:47:00 +00:00
|
|
|
},
|
|
|
|
.probe = ad7923_probe,
|
|
|
|
.remove = ad7923_remove,
|
|
|
|
.id_table = ad7923_id,
|
|
|
|
};
|
|
|
|
module_spi_driver(ad7923_driver);
|
|
|
|
|
2018-08-14 11:23:17 +00:00
|
|
|
MODULE_AUTHOR("Michael Hennerich <michael.hennerich@analog.com>");
|
2013-02-13 06:47:00 +00:00
|
|
|
MODULE_AUTHOR("Patrick Vasseur <patrick.vasseur@c-s.fr>");
|
2019-12-17 11:11:58 +00:00
|
|
|
MODULE_DESCRIPTION("Analog Devices AD7923 and similar ADC");
|
2013-02-13 06:47:00 +00:00
|
|
|
MODULE_LICENSE("GPL v2");
|