]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: Wire up regmap_config provided bulk write in missed functions
authorJavier Martinez Canillas <javierm@redhat.com>
Thu, 16 Jun 2022 07:34:35 +0000 (09:34 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 24 Jun 2022 15:27:22 +0000 (16:27 +0100)
commitfdb5bdd3a08286bf0c874ef7585f7cdce54fa701
treef896484077a3203c18d3fedaffba8466c5233e7e
parent1d40f0887becadacfa2fe77a6015c4250c822b8f
regmap: Wire up regmap_config provided bulk write in missed functions

There are some functions that were missed by commit 71ba7e7abdcd ("regmap:
Add bulk read/write callbacks into regmap_config") when support to define
bulk read/write callbacks in regmap_config was introduced.

The regmap_bulk_write() and regmap_noinc_write() functions weren't changed
to use the added map->write instead of the map->bus->write handler.

Also, the regmap_can_raw_write() was not modified to take map->write into
account. So will only return true if a bus with a .write callback is set.

Fixes: 71ba7e7abdcd ("regmap: Add bulk read/write callbacks into regmap_config")
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20220616073435.1988219-4-javierm@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap.c