Skip to content
/ linux Public
forked from torvalds/linux

Commit

Permalink
regmap: Devices using format_write don't support bulk operations
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
broonie committed Apr 30, 2012
1 parent 2e33caf commit 7a64761
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/base/regmap/regmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7a64761

Please sign in to comment.