#include <linux/err.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/swab.h>
#include <linux/crc7.h>
#include <linux/spi/spi.h>
#include <linux/gpio/consumer.h>
#include <linux/of.h>
#include <linux/regulator/consumer.h>
#include "wl1251.h"
#include "reg.h"
#include "spi.h"
struct wl1251_spi { … };
static irqreturn_t wl1251_irq(int irq, void *cookie)
{ … }
static void wl1251_spi_reset(struct wl1251 *wl)
{ … }
static void wl1251_spi_wake(struct wl1251 *wl)
{ … }
static void wl1251_spi_reset_wake(struct wl1251 *wl)
{ … }
static void wl1251_spi_read(struct wl1251 *wl, int addr, void *buf,
size_t len)
{ … }
static void wl1251_spi_write(struct wl1251 *wl, int addr, void *buf,
size_t len)
{ … }
static void wl1251_spi_enable_irq(struct wl1251 *wl)
{ … }
static void wl1251_spi_disable_irq(struct wl1251 *wl)
{ … }
static int wl1251_spi_set_power(struct wl1251 *wl, bool enable)
{ … }
static const struct wl1251_if_operations wl1251_spi_ops = …;
static int wl1251_spi_probe(struct spi_device *spi)
{ … }
static void wl1251_spi_remove(struct spi_device *spi)
{ … }
static struct spi_driver wl1251_spi_driver = …;
module_spi_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…) …;
MODULE_ALIAS(…) …;