Commit 40c5cc26 authored by Mark Brown's avatar Mark Brown

regmap: Fix bulk reads

We should be reading the number of bytes we were asked for, not the size
of a single register.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 90923351
......@@ -317,7 +317,7 @@ static int _regmap_raw_read(struct regmap *map, unsigned int reg, void *val,
u8[0] |= map->bus->read_flag_mask;
ret = map->bus->read(map->dev, map->work_buf, map->format.reg_bytes,
val, map->format.val_bytes);
val, val_len);
if (ret != 0)
return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment