diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2018-05-25 09:50:36 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-05-25 13:35:59 -0400 |
commit | ed24d568bd9190cee046ae64df5890494dea2ca4 (patch) | |
tree | 0742871087d9296fe197cfac27e40e75721f2343 /include/linux/regmap.h | |
parent | f15cd6d99198e9c15229aefec639a34a6e8174c6 (diff) |
regmap: add missing prototype for devm_init_slimbus
For some reason the devm variant of slimbus init is not added
into the header eventhough this __devm_regmap_init_slimbus()
is an exported function.
This patch adds this. This also fixes below warning in regmap-slimbus.c
regmap-slimbus.c:65:15: warning: symbol '__devm_regmap_init_slimbus'
was not declared. Should it be static?
regmap-slimbus.c:65:16: warning: no previous prototype for
'__devm_regmap_init_slimbus' [-Wmissing-prototypes]
Fixes: 7d6f7fb053ad ("regmap: add SLIMbus support")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/regmap.h')
-rw-r--r-- | include/linux/regmap.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h index b6865f070464..4f38068ffb71 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h | |||
@@ -588,7 +588,10 @@ struct regmap *__devm_regmap_init_sdw(struct sdw_slave *sdw, | |||
588 | const struct regmap_config *config, | 588 | const struct regmap_config *config, |
589 | struct lock_class_key *lock_key, | 589 | struct lock_class_key *lock_key, |
590 | const char *lock_name); | 590 | const char *lock_name); |
591 | 591 | struct regmap *__devm_regmap_init_slimbus(struct slim_device *slimbus, | |
592 | const struct regmap_config *config, | ||
593 | struct lock_class_key *lock_key, | ||
594 | const char *lock_name); | ||
592 | /* | 595 | /* |
593 | * Wrapper for regmap_init macros to include a unique lockdep key and name | 596 | * Wrapper for regmap_init macros to include a unique lockdep key and name |
594 | * for each call. No-op if CONFIG_LOCKDEP is not set. | 597 | * for each call. No-op if CONFIG_LOCKDEP is not set. |
@@ -907,6 +910,19 @@ bool regmap_ac97_default_volatile(struct device *dev, unsigned int reg); | |||
907 | __regmap_lockdep_wrapper(__devm_regmap_init_sdw, #config, \ | 910 | __regmap_lockdep_wrapper(__devm_regmap_init_sdw, #config, \ |
908 | sdw, config) | 911 | sdw, config) |
909 | 912 | ||
913 | /** | ||
914 | * devm_regmap_init_slimbus() - Initialise managed register map | ||
915 | * | ||
916 | * @slimbus: Device that will be interacted with | ||
917 | * @config: Configuration for register map | ||
918 | * | ||
919 | * The return value will be an ERR_PTR() on error or a valid pointer | ||
920 | * to a struct regmap. The regmap will be automatically freed by the | ||
921 | * device management code. | ||
922 | */ | ||
923 | #define devm_regmap_init_slimbus(slimbus, config) \ | ||
924 | __regmap_lockdep_wrapper(__devm_regmap_init_slimbus, #config, \ | ||
925 | slimbus, config) | ||
910 | int regmap_mmio_attach_clk(struct regmap *map, struct clk *clk); | 926 | int regmap_mmio_attach_clk(struct regmap *map, struct clk *clk); |
911 | void regmap_mmio_detach_clk(struct regmap *map); | 927 | void regmap_mmio_detach_clk(struct regmap *map); |
912 | void regmap_exit(struct regmap *map); | 928 | void regmap_exit(struct regmap *map); |