linux/drivers/iio/dac/max5522.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Maxim MAX5522
 * Dual, Ultra-Low-Power 10-Bit, Voltage-Output DACs
 *
 * Copyright 2022 Timesys Corp.
 */

#include <linux/device.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/regmap.h>
#include <linux/regulator/consumer.h>
#include <linux/slab.h>
#include <linux/spi/spi.h>

#include <linux/iio/iio.h>

#define MAX5522_MAX_ADDR
#define MAX5522_CTRL_NONE
#define MAX5522_CTRL_LOAD_IN_A
#define MAX5522_CTRL_LOAD_IN_B

#define MAX5522_REG_DATA(x)

struct max5522_chip_info {};

struct max5522_state {};

#define MAX5522_CHANNEL(chan)

static const struct iio_chan_spec max5522_channels[] =;

enum max5522_type {};

static const struct max5522_chip_info max5522_chip_info_tbl[] =;

static inline int max5522_info_to_reg(struct iio_chan_spec const *chan)
{}

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

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

static const struct iio_info max5522_info =;

static const struct regmap_config max5522_regmap_config =;

static int max5522_spi_probe(struct spi_device *spi)
{}

static const struct spi_device_id max5522_ids[] =;
MODULE_DEVICE_TABLE(spi, max5522_ids);

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

static struct spi_driver max5522_spi_driver =;
module_spi_driver();

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