linux/drivers/iio/dac/ad5593r.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * AD5593R Digital <-> Analog converters driver
 *
 * Copyright 2015-2016 Analog Devices Inc.
 * Author: Paul Cercueil <[email protected]>
 */

#include "ad5592r-base.h"

#include <linux/bitops.h>
#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>

#include <linux/unaligned.h>

#define AD5593R_MODE_CONF
#define AD5593R_MODE_DAC_WRITE
#define AD5593R_MODE_ADC_READBACK
#define AD5593R_MODE_DAC_READBACK
#define AD5593R_MODE_GPIO_READBACK
#define AD5593R_MODE_REG_READBACK

static int ad5593r_read_word(struct i2c_client *i2c, u8 reg, u16 *value)
{}

static int ad5593r_write_dac(struct ad5592r_state *st, unsigned chan, u16 value)
{}

static int ad5593r_read_adc(struct ad5592r_state *st, unsigned chan, u16 *value)
{}

static int ad5593r_reg_write(struct ad5592r_state *st, u8 reg, u16 value)
{}

static int ad5593r_reg_read(struct ad5592r_state *st, u8 reg, u16 *value)
{}

static int ad5593r_gpio_read(struct ad5592r_state *st, u8 *value)
{}

static const struct ad5592r_rw_ops ad5593r_rw_ops =;

static int ad5593r_i2c_probe(struct i2c_client *i2c)
{}

static void ad5593r_i2c_remove(struct i2c_client *i2c)
{}

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

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

static const struct acpi_device_id ad5593r_acpi_match[] =;
MODULE_DEVICE_TABLE(acpi, ad5593r_acpi_match);

static struct i2c_driver ad5593r_driver =;
module_i2c_driver();

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