summaryrefslogtreecommitdiff
path: root/drivers/base/regmap/internal.h
diff options
context:
space:
mode:
authorCristian Birsan <cristian.birsan@microchip.com>2016-08-08 18:44:21 +0300
committerMark Brown <broonie@kernel.org>2016-08-09 13:43:33 +0100
commit1ea975cf1ef57b1e44c0aec4820f60bb3b60904b (patch)
treebd316f9aa746e60842cc2cb740fbfc317bf34bc5 /drivers/base/regmap/internal.h
parent29b4817d4018df78086157ea3a55c1d9424a7cfc (diff)
regmap: Add a function to check if a regmap register is cached
Add a function to check if a regmap register is cached. This will be used in debugfs to dump the cached values of write only registers. Signed-off-by: Cristian Birsan <cristian.birsan@microchip.com> Signed-off-by: Mark Brown <broonie@kernel.org>
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 a0380338946a..f4be4c19bb17 100644
--- a/drivers/base/regmap/internal.h
+++ b/drivers/base/regmap/internal.h
@@ -173,6 +173,7 @@ struct regcache_ops {
int (*drop)(struct regmap *map, unsigned int min, unsigned int max);
};
+bool regmap_cached(struct regmap *map, unsigned int reg);
bool regmap_writeable(struct regmap *map, unsigned int reg);
bool regmap_readable(struct regmap *map, unsigned int reg);
bool regmap_volatile(struct regmap *map, unsigned int reg);