mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 10:33:27 +00:00
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>
This commit is contained in:
parent
2e33caf16f
commit
7a64761432
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue