linux/drivers/iio/adc/ltc2497-core.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * ltc2497-core.c - Common code for Analog Devices/Linear Technology
 * LTC2496 and LTC2497 ADCs
 *
 * Copyright (C) 2017 Analog Devices Inc.
 */

#include <linux/delay.h>
#include <linux/iio/iio.h>
#include <linux/iio/driver.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/regulator/consumer.h>

#include "ltc2497.h"

#define LTC2497_SGL
#define LTC2497_DIFF
#define LTC2497_SIGN

static int ltc2497core_wait_conv(struct ltc2497core_driverdata *ddata)
{}

static int ltc2497core_read(struct ltc2497core_driverdata *ddata, u8 address, int *val)
{}

static int ltc2497core_read_raw(struct iio_dev *indio_dev,
			    struct iio_chan_spec const *chan,
			    int *val, int *val2, long mask)
{}

#define LTC2497_CHAN(_chan, _addr, _ds_name)

#define LTC2497_CHAN_DIFF(_chan, _addr)

static const struct iio_chan_spec ltc2497core_channel[] =;

static const struct iio_info ltc2497core_info =;

int ltc2497core_probe(struct device *dev, struct iio_dev *indio_dev)
{}
EXPORT_SYMBOL_NS();

void ltc2497core_remove(struct iio_dev *indio_dev)
{}
EXPORT_SYMBOL_NS();

MODULE_DESCRIPTION();
MODULE_LICENSE();