summaryrefslogtreecommitdiffstats
path: root/drivers/base/regmap/internal.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-05-08 18:44:40 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-05-08 19:19:15 +0200
commit72b39f6f2b5a6b0beff14b80bed9756f151218a9 (patch)
treec5e2688207b1c796413debfb1936ededf4493edc /drivers/base/regmap/internal.h
parentregmap: validate regmap_raw_read/write val_len (diff)
downloadlinux-72b39f6f2b5a6b0beff14b80bed9756f151218a9.tar.xz
linux-72b39f6f2b5a6b0beff14b80bed9756f151218a9.zip
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/base/regmap/internal.h b/drivers/base/regmap/internal.h
index e46c279f8280..c994bc9bc04f 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;