#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/i2c.h>
#include <linux/iio/iio.h>
#define DMARD06_DRV_NAME …
#define DMARD06_CHIP_ID_REG …
#define DMARD06_TOUT_REG …
#define DMARD06_XOUT_REG …
#define DMARD06_YOUT_REG …
#define DMARD06_ZOUT_REG …
#define DMARD06_CTRL1_REG …
#define DMARD05_CHIP_ID …
#define DMARD06_CHIP_ID …
#define DMARD07_CHIP_ID …
#define DMARD05_AXIS_SCALE_VAL …
#define DMARD06_AXIS_SCALE_VAL …
#define DMARD06_TEMP_CENTER_VAL …
#define DMARD06_SIGN_BIT …
#define DMARD06_MODE_NORMAL …
#define DMARD06_MODE_POWERDOWN …
#define DMARD06_ACCEL_CHANNEL(_axis, _reg) …
#define DMARD06_TEMP_CHANNEL(_reg) …
struct dmard06_data { … };
static const struct iio_chan_spec dmard06_channels[] = …;
static int dmard06_read_raw(struct iio_dev *indio_dev,
struct iio_chan_spec const *chan,
int *val, int *val2, long mask)
{ … }
static const struct iio_info dmard06_info = …;
static int dmard06_probe(struct i2c_client *client)
{ … }
static int dmard06_suspend(struct device *dev)
{ … }
static int dmard06_resume(struct device *dev)
{ … }
static DEFINE_SIMPLE_DEV_PM_OPS(dmard06_pm_ops, dmard06_suspend,
dmard06_resume);
static const struct i2c_device_id dmard06_id[] = …;
MODULE_DEVICE_TABLE(i2c, dmard06_id);
static const struct of_device_id dmard06_of_match[] = …;
MODULE_DEVICE_TABLE(of, dmard06_of_match);
static struct i2c_driver dmard06_driver = …;
module_i2c_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;