Skip to contentSkip to conversation

regmap: Devices using format_write don't support bulk operations

PATCH New Mark Brown 1 participant 1 message Apr 30, 2012

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/base/regmap/regmap.c |    3 +++
 1 file changed, 3 insertions(+)
drivers/base/regmap/regmap.c +3 -0
index 0a05a70..fcd69ff 100644
@@ -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;
Signature · 1 line
1.7.10