linux/drivers/iio/gyro/adis16130.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * ADIS16130 Digital Output, High Precision Angular Rate Sensor driver
 *
 * Copyright 2010 Analog Devices Inc.
 */

#include <linux/mutex.h>
#include <linux/kernel.h>
#include <linux/spi/spi.h>
#include <linux/module.h>

#include <linux/iio/iio.h>

#include <asm/unaligned.h>

#define ADIS16130_CON
#define ADIS16130_CON_RD
#define ADIS16130_IOP

/* 1 = data-ready signal low when unread data on all channels; */
#define ADIS16130_IOP_ALL_RDY
#define ADIS16130_IOP_SYNC
#define ADIS16130_RATEDATA
#define ADIS16130_TEMPDATA
#define ADIS16130_RATECS
#define ADIS16130_RATECS_EN
#define ADIS16130_TEMPCS
#define ADIS16130_TEMPCS_EN
#define ADIS16130_RATECONV
#define ADIS16130_TEMPCONV
#define ADIS16130_MODE
#define ADIS16130_MODE_24BIT

/**
 * struct adis16130_state - device instance specific data
 * @us:			actual spi_device to write data
 * @buf_lock:		mutex to protect tx and rx
 * @buf:		unified tx/rx buffer
 **/
struct adis16130_state {};

static int adis16130_spi_read(struct iio_dev *indio_dev, u8 reg_addr, u32 *val)
{}

static int adis16130_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 adis16130_channels[] =;

static const struct iio_info adis16130_info =;

static int adis16130_probe(struct spi_device *spi)
{}

static struct spi_driver adis16130_driver =;
module_spi_driver();

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