From: Mark Brown Date: Sun, 11 Mar 2012 11:49:17 +0000 (+0000) Subject: regmap: Rejig struct declarations for stubbed API X-Git-Tag: v3.12-rc1~3613^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b83d2ff01376cf3799394693c0dd089f657bdf84;p=kernel%2Fkernel-generic.git 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 Signed-off-by: Mark Brown --- diff --git a/include/linux/regmap.h b/include/linux/regmap.h index 33d5f1d..14b8252 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h @@ -16,11 +16,10 @@ #include #include -#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. *