summaryrefslogtreecommitdiffstats
path: root/drivers/base/regmap/regcache.c
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-10-09 12:28:52 +0100
committerMark Brown <broonie@linaro.org>2013-10-09 14:05:24 +0100
commit0a8198094da895c8d5db95812fe9de7027d808e4 (patch)
treed9da7fa270e1e618097353eaf1b2fb97239d9fd7 /drivers/base/regmap/regcache.c
parent651e013e3ce6c0646c39a07e22bebad75a207209 (diff)
downloadop-kernel-dev-0a8198094da895c8d5db95812fe9de7027d808e4.zip
op-kernel-dev-0a8198094da895c8d5db95812fe9de7027d808e4.tar.gz
regmap: Simplify the initiation of async I/O
Rather than passing a flag around through the entire call stack store it in the regmap struct and read it when required. This minimises the visibility of the feature through the API, minimising the code updates needed to use it more widely. Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/base/regmap/regcache.c')
-rw-r--r--drivers/base/regmap/regcache.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c
index d6c2d69..a36112a 100644
--- a/drivers/base/regmap/regcache.c
+++ b/drivers/base/regmap/regcache.c
@@ -631,8 +631,7 @@ static int regcache_sync_block_raw_flush(struct regmap *map, const void **data,
map->cache_bypass = 1;
- ret = _regmap_raw_write(map, base, *data, count * val_bytes,
- false);
+ ret = _regmap_raw_write(map, base, *data, count * val_bytes);
map->cache_bypass = 0;
OpenPOWER on IntegriCloud