#include <linux/device.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/spi/spi.h>
#include "adt7316.h"
#define ADT7316_SPI_MAX_FREQ_HZ …
#define ADT7316_SPI_CMD_READ …
#define ADT7316_SPI_CMD_WRITE …
static int adt7316_spi_multi_read(void *client, u8 reg, u8 count, u8 *data)
{ … }
static int adt7316_spi_multi_write(void *client, u8 reg, u8 count, u8 *data)
{ … }
static int adt7316_spi_read(void *client, u8 reg, u8 *data)
{ … }
static int adt7316_spi_write(void *client, u8 reg, u8 val)
{ … }
static int adt7316_spi_probe(struct spi_device *spi_dev)
{ … }
static const struct spi_device_id adt7316_spi_id[] = …;
MODULE_DEVICE_TABLE(spi, adt7316_spi_id);
static const struct of_device_id adt7316_of_spi_match[] = …;
MODULE_DEVICE_TABLE(of, adt7316_of_spi_match);
static struct spi_driver adt7316_driver = …;
module_spi_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;