#include <linux/i2c.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/regmap.h>
#include "adxl367.h"
#define ADXL367_I2C_FIFO_DATA …
struct adxl367_i2c_state { … };
static bool adxl367_readable_noinc_reg(struct device *dev, unsigned int reg)
{ … }
static int adxl367_i2c_read_fifo(void *context, __be16 *fifo_buf,
unsigned int fifo_entries)
{ … }
static const struct regmap_config adxl367_i2c_regmap_config = …;
static const struct adxl367_ops adxl367_i2c_ops = …;
static int adxl367_i2c_probe(struct i2c_client *client)
{ … }
static const struct i2c_device_id adxl367_i2c_id[] = …;
MODULE_DEVICE_TABLE(i2c, adxl367_i2c_id);
static const struct of_device_id adxl367_of_match[] = …;
MODULE_DEVICE_TABLE(of, adxl367_of_match);
static struct i2c_driver adxl367_i2c_driver = …;
module_i2c_driver(…) …;
MODULE_IMPORT_NS(…);
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;