linux/drivers/iio/dac/max517.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *  max517.c - Support for Maxim MAX517, MAX518 and MAX519
 *
 *  Copyright (C) 2010, 2011 Roland Stigge <[email protected]>
 */

#include <linux/module.h>
#include <linux/slab.h>
#include <linux/jiffies.h>
#include <linux/i2c.h>
#include <linux/err.h>

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

#define MAX517_DRV_NAME

/* Commands */
#define COMMAND_CHANNEL0
#define COMMAND_CHANNEL1
#define COMMAND_PD

enum max517_device_ids {};

struct max517_data {};

/*
 * channel: bit 0: channel 1
 *          bit 1: channel 2
 * (this way, it's possible to set both channels at once)
 */
static int max517_set_value(struct iio_dev *indio_dev,
	long val, int channel)
{}

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

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

static int max517_suspend(struct device *dev)
{}

static int max517_resume(struct device *dev)
{}

static DEFINE_SIMPLE_DEV_PM_OPS(max517_pm_ops, max517_suspend, max517_resume);

static const struct iio_info max517_info =;

#define MAX517_CHANNEL(chan)

static const struct iio_chan_spec max517_channels[] =;

static int max517_probe(struct i2c_client *client)
{}

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

static struct i2c_driver max517_driver =;
module_i2c_driver();

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