#include <linux/input.h>
#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/types.h>
#include <linux/pm.h>
#include "adxl34x.h"
static int adxl34x_smbus_read(struct device *dev, unsigned char reg)
{ … }
static int adxl34x_smbus_write(struct device *dev,
unsigned char reg, unsigned char val)
{ … }
static int adxl34x_smbus_read_block(struct device *dev,
unsigned char reg, int count,
void *buf)
{ … }
static int adxl34x_i2c_read_block(struct device *dev,
unsigned char reg, int count,
void *buf)
{ … }
static const struct adxl34x_bus_ops adxl34x_smbus_bops = …;
static const struct adxl34x_bus_ops adxl34x_i2c_bops = …;
static int adxl34x_i2c_probe(struct i2c_client *client)
{ … }
static const struct i2c_device_id adxl34x_id[] = …;
MODULE_DEVICE_TABLE(i2c, adxl34x_id);
static const struct of_device_id adxl34x_of_id[] = …;
MODULE_DEVICE_TABLE(of, adxl34x_of_id);
static struct i2c_driver adxl34x_driver = …;
module_i2c_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;