#include <linux/module.h>
#include <linux/i2c.h>
#include "mpl115.h"
static int mpl115_i2c_init(struct device *dev)
{ … }
static int mpl115_i2c_read(struct device *dev, u8 address)
{ … }
static int mpl115_i2c_write(struct device *dev, u8 address, u8 value)
{ … }
static const struct mpl115_ops mpl115_i2c_ops = …;
static int mpl115_i2c_probe(struct i2c_client *client)
{ … }
static const struct i2c_device_id mpl115_i2c_id[] = …;
MODULE_DEVICE_TABLE(i2c, mpl115_i2c_id);
static struct i2c_driver mpl115_i2c_driver = …;
module_i2c_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_IMPORT_NS(…);