#include <linux/module.h>
#include <linux/spi/spi.h>
#include "mpl115.h"
#define MPL115_SPI_WRITE(address) …
#define MPL115_SPI_READ(address) …
struct mpl115_spi_buf { … };
static int mpl115_spi_init(struct device *dev)
{ … }
static int mpl115_spi_read(struct device *dev, u8 address)
{ … }
static int mpl115_spi_write(struct device *dev, u8 address, u8 value)
{ … }
static const struct mpl115_ops mpl115_spi_ops = …;
static int mpl115_spi_probe(struct spi_device *spi)
{ … }
static const struct spi_device_id mpl115_spi_ids[] = …;
MODULE_DEVICE_TABLE(spi, mpl115_spi_ids);
static struct spi_driver mpl115_spi_driver = …;
module_spi_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_IMPORT_NS(…);