summaryrefslogtreecommitdiffstats
path: root/drivers/base/regmap/internal.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2013-03-04 09:04:51 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-03-04 10:30:27 +0800
commit8a819ff8abac9ad49f120c84cce01878b3d235c2 (patch)
treee4bc968500984f5380a36ee4d12b1bc8e29ce9aa /drivers/base/regmap/internal.h
parent325acab447f775bc2258b3a37a780893c203ab6c (diff)
downloadop-kernel-dev-8a819ff8abac9ad49f120c84cce01878b3d235c2.zip
op-kernel-dev-8a819ff8abac9ad49f120c84cce01878b3d235c2.tar.gz
regmap: core: Split out in place value parsing
Currently the value parsing operations both return the parsed value and modify the passed buffer. This precludes their use in places like the cache code so split out the in place modification into a new parse_inplace() operation. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/base/regmap/internal.h')
-rw-r--r--drivers/base/regmap/internal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/base/regmap/internal.h b/drivers/base/regmap/internal.h
index 582d7fd..2b5851d 100644
--- a/drivers/base/regmap/internal.h
+++ b/drivers/base/regmap/internal.h
@@ -38,7 +38,8 @@ struct regmap_format {
unsigned int reg, unsigned int val);
void (*format_reg)(void *buf, unsigned int reg, unsigned int shift);
void (*format_val)(void *buf, unsigned int val, unsigned int shift);
- unsigned int (*parse_val)(void *buf);
+ unsigned int (*parse_val)(const void *buf);
+ void (*parse_inplace)(void *buf);
};
struct regmap_async {
OpenPOWER on IntegriCloud