linux/drivers/staging/iio/addac/adt7316-spi.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * API bus driver for ADT7316/7/8 ADT7516/7/9 digital temperature
 * sensor, ADC and DAC
 *
 * Copyright 2010 Analog Devices Inc.
 */

#include <linux/device.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/spi/spi.h>

#include "adt7316.h"

#define ADT7316_SPI_MAX_FREQ_HZ
#define ADT7316_SPI_CMD_READ
#define ADT7316_SPI_CMD_WRITE

/*
 * adt7316 register access by SPI
 */

static int adt7316_spi_multi_read(void *client, u8 reg, u8 count, u8 *data)
{}

static int adt7316_spi_multi_write(void *client, u8 reg, u8 count, u8 *data)
{}

static int adt7316_spi_read(void *client, u8 reg, u8 *data)
{}

static int adt7316_spi_write(void *client, u8 reg, u8 val)
{}

/*
 * device probe and remove
 */

static int adt7316_spi_probe(struct spi_device *spi_dev)
{}

static const struct spi_device_id adt7316_spi_id[] =;

MODULE_DEVICE_TABLE(spi, adt7316_spi_id);

static const struct of_device_id adt7316_of_spi_match[] =;

MODULE_DEVICE_TABLE(of, adt7316_of_spi_match);

static struct spi_driver adt7316_driver =;
module_spi_driver();

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