#include <linux/device.h>
#include <linux/kernel.h>
#include <linux/i2c.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include "adt7316.h"
static int adt7316_i2c_read(void *client, u8 reg, u8 *data)
{ … }
static int adt7316_i2c_write(void *client, u8 reg, u8 data)
{ … }
static int adt7316_i2c_multi_read(void *client, u8 reg, u8 count, u8 *data)
{ … }
static int adt7316_i2c_multi_write(void *client, u8 reg, u8 count, u8 *data)
{ … }
static int adt7316_i2c_probe(struct i2c_client *client)
{ … }
static const struct i2c_device_id adt7316_i2c_id[] = …;
MODULE_DEVICE_TABLE(i2c, adt7316_i2c_id);
static const struct of_device_id adt7316_of_match[] = …;
MODULE_DEVICE_TABLE(of, adt7316_of_match);
static struct i2c_driver adt7316_driver = …;
module_i2c_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;