Skip to content

Commit 7a64761

Browse files
committed
regmap: Devices using format_write don't support bulk operations
Set the use_single_rw flag for devices that use format_write() since format_write() doesn't support any form of block operation. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
1 parent 2e33caf commit 7a64761

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/base/regmap/regmap.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,9 @@ struct regmap *regmap_init(struct device *dev,
341341
break;
342342
}
343343

344+
if (map->format.format_write)
345+
map->use_single_rw = true;
346+
344347
if (!map->format.format_write &&
345348
!(map->format.format_reg && map->format.format_val))
346349
goto err_map;

0 commit comments

Comments
 (0)