linux/drivers/iio/accel/dmard09.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * IIO driver for the 3-axis accelerometer Domintech DMARD09.
 *
 * Copyright (c) 2016, Jelle van der Waa <[email protected]>
 */

#include <linux/unaligned.h>
#include <linux/module.h>
#include <linux/i2c.h>
#include <linux/iio/iio.h>

#define DMARD09_DRV_NAME

#define DMARD09_REG_CHIPID
#define DMARD09_REG_STAT
#define DMARD09_REG_X
#define DMARD09_REG_Y
#define DMARD09_REG_Z
#define DMARD09_CHIPID

#define DMARD09_BUF_LEN
#define DMARD09_AXIS_X
#define DMARD09_AXIS_Y
#define DMARD09_AXIS_Z
#define DMARD09_AXIS_X_OFFSET
#define DMARD09_AXIS_Y_OFFSET
#define DMARD09_AXIS_Z_OFFSET

struct dmard09_data {};

#define DMARD09_CHANNEL(_axis, offset)

static const struct iio_chan_spec dmard09_channels[] =;

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

static const struct iio_info dmard09_info =;

static int dmard09_probe(struct i2c_client *client)
{}

static const struct i2c_device_id dmard09_id[] =;

MODULE_DEVICE_TABLE(i2c, dmard09_id);

static struct i2c_driver dmard09_driver =;

module_i2c_driver();

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