summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/cs43130.c
diff options
context:
space:
mode:
authorDavid Frey <dpfrey@gmail.com>2018-09-01 19:50:41 +0300
committerMark Brown <broonie@kernel.org>2018-09-07 15:03:55 +0300
commit1c96a2f67cd9b617b013f0a7580d76aae7dcd0d7 (patch)
tree3face74ddb493620322aade5c20d721826e38486 /sound/soc/codecs/cs43130.c
parent9ad8eb0168ab76786f65d4b80ce082980f79a1d9 (diff)
downloadlinux-1c96a2f67cd9b617b013f0a7580d76aae7dcd0d7.tar.xz
regmap: split up regmap_config.use_single_rw
Split regmap_config.use_single_rw into use_single_read and use_single_write. This change enables drivers of devices which only support bulk operations in one direction to use the regmap_bulk_*() functions for both directions and have their bulk operation split into single operations only when necessary. Update all struct regmap_config instances where use_single_rw==true to instead set both use_single_read and use_single_write. No attempt was made to evaluate whether it is possible to set only one of use_single_read or use_single_write. Signed-off-by: David Frey <dpfrey@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/cs43130.c')
-rw-r--r--sound/soc/codecs/cs43130.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/codecs/cs43130.c b/sound/soc/codecs/cs43130.c
index 80dc42197154..3f7b255587e6 100644
--- a/sound/soc/codecs/cs43130.c
+++ b/sound/soc/codecs/cs43130.c
@@ -2362,7 +2362,9 @@ static const struct regmap_config cs43130_regmap = {
.precious_reg = cs43130_precious_register,
.volatile_reg = cs43130_volatile_register,
.cache_type = REGCACHE_RBTREE,
- .use_single_rw = true, /* needed for regcache_sync */
+ /* needed for regcache_sync */
+ .use_single_read = true,
+ .use_single_write = true,
};
static u16 const cs43130_dc_threshold[CS43130_DC_THRESHOLD] = {