summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-03-11 11:49:17 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-03-11 11:49:17 +0000
commitb83d2ff01376cf3799394693c0dd089f657bdf84 (patch)
treed804b80e12534690488266405bde4f2879f00c63 /include/linux
parent994f5db65ef4b83db0321842bd43c6bc0a51f000 (diff)
downloadlinux-b83d2ff01376cf3799394693c0dd089f657bdf84.tar.gz
linux-b83d2ff01376cf3799394693c0dd089f657bdf84.tar.bz2
linux-b83d2ff01376cf3799394693c0dd089f657bdf84.zip
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: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/regmap.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h
index 33d5f1d9f882..14b8252d8ed0 100644
--- a/include/linux/regmap.h
+++ b/include/linux/regmap.h
@@ -16,11 +16,10 @@
#include <linux/device.h>
#include <linux/list.h>
-#ifdef CONFIG_REGMAP
-
struct module;
struct i2c_client;
struct spi_device;
+struct regmap;
/* An enum of all the supported cache types */
enum regcache_type {
@@ -42,6 +41,8 @@ struct reg_default {
unsigned int def;
};
+#ifdef CONFIG_REGMAP
+
/**
* Configuration for the register map of a device.
*