#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/of.h>
#include <linux/pm.h>
#include <linux/spi/spi.h>
#include <linux/regmap.h>
#include <linux/err.h>
#include <linux/mfd/wm831x/core.h>
static int wm831x_spi_probe(struct spi_device *spi)
{ … }
static int wm831x_spi_suspend(struct device *dev)
{ … }
static int wm831x_spi_poweroff(struct device *dev)
{ … }
static const struct dev_pm_ops wm831x_spi_pm = …;
static const struct spi_device_id wm831x_spi_ids[] = …;
static struct spi_driver wm831x_spi_driver = …;
static int __init wm831x_spi_init(void)
{ … }
subsys_initcall(wm831x_spi_init);