#include <linux/bitrev.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/kthread.h>
#include <linux/spi/spi.h>
#include <linux/wait.h>
#include <linux/param.h>
#include <linux/delay.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/io.h>
#include "slic_ds26522.h"
#define SLIC_TRANS_LEN …
#define SLIC_TWO_LEN …
#define SLIC_THREE_LEN …
static struct spi_device *g_spi;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…) …;
static void slic_write(struct spi_device *spi, u16 addr,
u8 data)
{ … }
static u8 slic_read(struct spi_device *spi, u16 addr)
{ … }
static bool get_slic_product_code(struct spi_device *spi)
{ … }
static void ds26522_e1_spec_config(struct spi_device *spi)
{ … }
static int slic_ds26522_init_configure(struct spi_device *spi)
{ … }
static void slic_ds26522_remove(struct spi_device *spi)
{ … }
static int slic_ds26522_probe(struct spi_device *spi)
{ … }
static const struct spi_device_id slic_ds26522_id[] = …;
MODULE_DEVICE_TABLE(spi, slic_ds26522_id);
static const struct of_device_id slic_ds26522_match[] = …;
MODULE_DEVICE_TABLE(of, slic_ds26522_match);
static struct spi_driver slic_ds26522_driver = …;
module_spi_driver(…) …;