Skip to content

Commit 80215f1

Browse files
baolin-wangbroonie
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/df32fd0529957d1e7e26ba1465723f16cfbe92c8.1586757922.git.baolin.wang7@gmail.com Signed-off-by: Mark Brown <[email protected]>
1 parent 8f3d9f3 commit 80215f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/base/regmap/regmap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,7 @@ struct regmap *__regmap_init(struct device *dev,
827827
} else if (!bus->read || !bus->write) {
828828
map->reg_read = _regmap_bus_reg_read;
829829
map->reg_write = _regmap_bus_reg_write;
830+
map->reg_update_bits = bus->reg_update_bits;
830831

831832
map->defer_caching = false;
832833
goto skip_format_initialization;

0 commit comments

Comments
 (0)