summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorBaolin Wang <baolin.wang7@gmail.com>2020-04-13 14:13:20 +0800
committerMark Brown <broonie@kernel.org>2020-04-14 16:05:35 +0100
commit80215f133d59310fdfce5ee4398aeb7076c2e99f (patch)
tree07cc33ded68f94373083dcdcf2fd29e4caa00411 /drivers/base
parent8f3d9f354286745c751374f5f1fcafee6b3f3136 (diff)
regmap: Add bus reg_update_bits() support
Add reg_update_bits() support in case some platforms use a special method to update bits of registers. Signed-off-by: Baolin Wang <baolin.wang7@gmail.com> Link: https://lore.kernel.org/r/df32fd0529957d1e7e26ba1465723f16cfbe92c8.1586757922.git.baolin.wang7@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/regmap/regmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c
index 59f911e57719..553d92aa0c68 100644
--- a/drivers/base/regmap/regmap.c
+++ b/drivers/base/regmap/regmap.c
@@ -827,6 +827,7 @@ struct regmap *__regmap_init(struct device *dev,
} else if (!bus->read || !bus->write) {
map->reg_read = _regmap_bus_reg_read;
map->reg_write = _regmap_bus_reg_write;
+ map->reg_update_bits = bus->reg_update_bits;
map->defer_caching = false;
goto skip_format_initialization;