diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-03-11 07:49:17 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-03-11 07:49:17 -0400 |
commit | b83d2ff01376cf3799394693c0dd089f657bdf84 (patch) | |
tree | d804b80e12534690488266405bde4f2879f00c63 /include/linux/regmap.h | |
parent | 994f5db65ef4b83db0321842bd43c6bc0a51f000 (diff) |
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/regmap.h')
-rw-r--r-- | include/linux/regmap.h | 5 |
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 @@ | |||
16 | #include <linux/device.h> | 16 | #include <linux/device.h> |
17 | #include <linux/list.h> | 17 | #include <linux/list.h> |
18 | 18 | ||
19 | #ifdef CONFIG_REGMAP | ||
20 | |||
21 | struct module; | 19 | struct module; |
22 | struct i2c_client; | 20 | struct i2c_client; |
23 | struct spi_device; | 21 | struct spi_device; |
22 | struct regmap; | ||
24 | 23 | ||
25 | /* An enum of all the supported cache types */ | 24 | /* An enum of all the supported cache types */ |
26 | enum regcache_type { | 25 | enum regcache_type { |
@@ -42,6 +41,8 @@ struct reg_default { | |||
42 | unsigned int def; | 41 | unsigned int def; |
43 | }; | 42 | }; |
44 | 43 | ||
44 | #ifdef CONFIG_REGMAP | ||
45 | |||
45 | /** | 46 | /** |
46 | * Configuration for the register map of a device. | 47 | * Configuration for the register map of a device. |
47 | * | 48 | * |