From 7a6476143270d947924f5bbbc124accb0e558bf4 Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Mon, 30 Apr 2012 23:26:32 +0100 Subject: [PATCH] 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 --- drivers/base/regmap/regmap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index 0a05a706e141..fcd69ff695d5 100644 --- a/drivers/base/regmap/regmap.c +++ b/drivers/base/regmap/regmap.c @@ -341,6 +341,9 @@ struct regmap *regmap_init(struct device *dev, break; } + if (map->format.format_write) + map->use_single_rw = true; + if (!map->format.format_write && !(map->format.format_reg && map->format.format_val)) goto err_map; -- 2.39.5