#include <linux/device.h>
#include <linux/errno.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/spi/spi.h>
#include <linux/stddef.h>
#include <linux/types.h>
#include "mprls0025pa.h"
struct mpr_spi_buf { … };
static int mpr_spi_init(struct device *dev)
{ … }
static int mpr_spi_xfer(struct mpr_data *data, const u8 cmd, const u8 pkt_len)
{ … }
static const struct mpr_ops mpr_spi_ops = …;
static int mpr_spi_probe(struct spi_device *spi)
{ … }
static const struct of_device_id mpr_spi_match[] = …;
MODULE_DEVICE_TABLE(of, mpr_spi_match);
static const struct spi_device_id mpr_spi_id[] = …;
MODULE_DEVICE_TABLE(spi, mpr_spi_id);
static struct spi_driver mpr_spi_driver = …;
module_spi_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_IMPORT_NS(…);