diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-05-08 17:44:40 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-05-08 18:19:15 +0100 |
commit | 72b39f6f2b5a6b0beff14b80bed9756f151218a9 (patch) | |
tree | c5e2688207b1c796413debfb1936ededf4493edc /drivers/base/regmap/internal.h | |
parent | 851960ba7cb38a6a108d102e4c8b0ab702972e22 (diff) | |
download | kernel_goldelico_gta04-72b39f6f2b5a6b0beff14b80bed9756f151218a9.zip kernel_goldelico_gta04-72b39f6f2b5a6b0beff14b80bed9756f151218a9.tar.gz kernel_goldelico_gta04-72b39f6f2b5a6b0beff14b80bed9756f151218a9.tar.bz2 |
regmap: Implement dev_get_regmap()
Use devres to implement dev_get_regmap(). This should mean that in almost
all cases devices wishing to take advantage of framework features based on
regmap shouldn't need to explicitly pass the regmap into the framework.
This simplifies device setup a bit.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/base/regmap/internal.h')
-rw-r--r-- | drivers/base/regmap/internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/base/regmap/internal.h b/drivers/base/regmap/internal.h index e46c279..c994bc9 100644 --- a/drivers/base/regmap/internal.h +++ b/drivers/base/regmap/internal.h @@ -45,6 +45,7 @@ struct regmap { struct regmap_format format; /* Buffer format */ const struct regmap_bus *bus; void *bus_context; + const char *name; #ifdef CONFIG_DEBUG_FS struct dentry *debugfs; |