Re: [PATCH 3/3] regmap: Wire up regmap_config provided bulk write in missed functions

From: Marek Vasut
Date: Sat Jun 18 2022 - 19:21:44 EST


On 6/16/22 09:34, Javier Martinez Canillas wrote:
There are some functions that were missed by commit d77e74561368 ("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: d77e74561368 ("regmap: Add bulk read/write callbacks into regmap_config")
Signed-off-by: Javier Martinez Canillas <javierm@xxxxxxxxxx>

Reviewed-by: Marek Vasut <marex@xxxxxxx>