Commit b83d2ff0 authored by Mark Brown's avatar Mark Brown

regmap: Rejig struct declarations for stubbed API

Ensure we have a forward declaration of struct regmap that isn't just
the return value of regmap_init() and make the definition of the
register defaults available.
Reported-by: default avatarRandy Dunlap <rdunlap@xenotime.net>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 994f5db6
...@@ -16,11 +16,10 @@ ...@@ -16,11 +16,10 @@
#include <linux/device.h> #include <linux/device.h>
#include <linux/list.h> #include <linux/list.h>
#ifdef CONFIG_REGMAP
struct module; struct module;
struct i2c_client; struct i2c_client;
struct spi_device; struct spi_device;
struct regmap;
/* An enum of all the supported cache types */ /* An enum of all the supported cache types */
enum regcache_type { enum regcache_type {
...@@ -42,6 +41,8 @@ struct reg_default { ...@@ -42,6 +41,8 @@ struct reg_default {
unsigned int def; unsigned int def;
}; };
#ifdef CONFIG_REGMAP
/** /**
* Configuration for the register map of a device. * Configuration for the register map of a device.
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment