summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-02-17 14:20:14 -0800
committerSimone Willett <swillett@nvidia.com>2012-04-15 13:22:39 -0700
commit4905e92c32deb4438361f3e52f3355aa877728ff (patch)
tree00988a74ff78e2050bcf8da35e53ec68444cd5cf /include/linux
parent8d5017795c0e7d407852bae55452ae979b45071f (diff)
regmap: Allow users to query the size of register values
Generic infrastructure based on top of regmap may want to operate on blocks of data and therefore find it useful to find the size of the register values. Provide an accessor operation for this. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Cherry-pick from mainline a6539c3 Change-Id: I455ace158eea38f6a92938f6330ec074bc18f0da Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/96481 Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/regmap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h
index 9fce3c8eb40c..da27cb17597b 100644
--- a/include/linux/regmap.h
+++ b/include/linux/regmap.h
@@ -157,6 +157,7 @@ int regmap_update_bits_lazy(struct regmap *map, unsigned int reg,
int regmap_update_bits_check(struct regmap *map, unsigned int reg,
unsigned int mask, unsigned int val,
bool *change);
+int regmap_get_val_bytes(struct regmap *map);
int regcache_sync(struct regmap *map);
void regcache_cache_only(struct regmap *map, bool enable);