#include <linux/spi/spi.h>
#include <linux/module.h>
#include "ad525x_dpot.h"
static int write8(void *client, u8 val)
{ … }
static int write16(void *client, u8 reg, u8 val)
{ … }
static int write24(void *client, u8 reg, u16 val)
{ … }
static int read8(void *client)
{ … }
static int read16(void *client, u8 reg)
{ … }
static int read24(void *client, u8 reg)
{ … }
static const struct ad_dpot_bus_ops bops = …;
static int ad_dpot_spi_probe(struct spi_device *spi)
{ … }
static void ad_dpot_spi_remove(struct spi_device *spi)
{ … }
static const struct spi_device_id ad_dpot_spi_id[] = …;
MODULE_DEVICE_TABLE(spi, ad_dpot_spi_id);
static struct spi_driver ad_dpot_spi_driver = …;
module_spi_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;