diff options
author | Michal Simek <michal.simek@xilinx.com> | 2014-02-10 19:22:33 +0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-16 05:53:02 +0400 |
commit | 6cfec04bcc05a829179c02584bb55f28fee03795 (patch) | |
tree | 717d7055a8c0b445856ddfc56b3d6230f4a590d9 /include/linux/regmap.h | |
parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (diff) | |
download | linux-6cfec04bcc05a829179c02584bb55f28fee03795.tar.xz |
regmap: Separate regmap dev initialization
Create special function regmap_attach_dev
which can be called separately out of regmap_init.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include/linux/regmap.h')
-rw-r--r-- | include/linux/regmap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h index 4149f1a9b003..fa4d079fa44c 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h @@ -317,6 +317,8 @@ struct regmap *regmap_init(struct device *dev, const struct regmap_bus *bus, void *bus_context, const struct regmap_config *config); +int regmap_attach_dev(struct device *dev, struct regmap *map, + const struct regmap_config *config); struct regmap *regmap_init_i2c(struct i2c_client *i2c, const struct regmap_config *config); struct regmap *regmap_init_spi(struct spi_device *dev, |