diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2022-07-15 22:10:32 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-07-18 13:45:28 +0100 |
commit | 739f872e48d47c97fa17a86a7b3356771b75240c (patch) | |
tree | 120dda379ec7bba38ba3bebe1d9fa4b12571699a /drivers/base/regmap | |
parent | cf39ed2e8ecddbee38e02691d6293b812e98e397 (diff) | |
download | linux-739f872e48d47c97fa17a86a7b3356771b75240c.tar.bz2 |
regmap: permit to set reg_update_bits with bulk implementation
A regmap may still require to set a custom reg_update_bits instead of
relying to the regmap_bus_read/write general function.
Permit to set it in the map if provided by the regmap config.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Link: https://lore.kernel.org/r/20220715201032.19507-1-ansuelsmth@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/base/regmap')
-rw-r--r-- | drivers/base/regmap/regmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index 0caa5690c560..fee221c5008c 100644 --- a/drivers/base/regmap/regmap.c +++ b/drivers/base/regmap/regmap.c @@ -882,6 +882,8 @@ struct regmap *__regmap_init(struct device *dev, if (config && config->read && config->write) { map->reg_read = _regmap_bus_read; + if (config->reg_update_bits) + map->reg_update_bits = config->reg_update_bits; /* Bulk read/write */ map->read = config->read; |