linux/drivers/iio/adc/ltc2485.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * ltc2485.c - Driver for Linear Technology LTC2485 ADC
 *
 * Copyright (C) 2016 Alison Schofield <[email protected]>
 *
 * Datasheet: http://cds.linear.com/docs/en/datasheet/2485fd.pdf
 */

#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/module.h>

#include <linux/iio/iio.h>
#include <linux/iio/sysfs.h>

/* Power-on configuration: rejects both 50/60Hz, operates at 1x speed */
#define LTC2485_CONFIG_DEFAULT

struct ltc2485_data {};

static void ltc2485_wait_conv(struct ltc2485_data *data)
{}

static int ltc2485_read(struct ltc2485_data *data, int *val)
{}

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

static const struct iio_chan_spec ltc2485_channel[] =;

static const struct iio_info ltc2485_info =;

static int ltc2485_probe(struct i2c_client *client)
{}

static const struct i2c_device_id ltc2485_id[] =;
MODULE_DEVICE_TABLE(i2c, ltc2485_id);

static struct i2c_driver ltc2485_driver =;
module_i2c_driver();

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