mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
regmap: No multi_write support if bus->write does not exist
There is no multi_write support available if we cannot use raw_write. This is the case if bus->write is not implemented. This patch adds a condition that we need bus and bus->write so that can_multi_write is true. Signed-off-by: Markus Pargmann <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
67921a1a66
commit
9c9f7f6759
1 changed files with 1 additions and 1 deletions
|
|
@ -578,7 +578,7 @@ struct regmap *regmap_init(struct device *dev,
|
|||
map->reg_stride = 1;
|
||||
map->use_single_read = config->use_single_rw || !bus || !bus->read;
|
||||
map->use_single_write = config->use_single_rw || !bus || !bus->write;
|
||||
map->can_multi_write = config->can_multi_write;
|
||||
map->can_multi_write = config->can_multi_write && bus && bus->write;
|
||||
map->dev = dev;
|
||||
map->bus = bus;
|
||||
map->bus_context = bus_context;
|
||||
|
|
|
|||
Loading…
Reference in a new issue