projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9092335
)
regmap: Fix bulk reads
author
Mark Brown
<
[email protected]
>
Sun, 24 Jul 2011 21:39:12 +0000
(22:39 +0100)
committer
Mark Brown
<
[email protected]
>
Sun, 24 Jul 2011 21:44:51 +0000
(22:44 +0100)
We should be reading the number of bytes we were asked for, not the size
of a single register.
Signed-off-by: Mark Brown <
[email protected]
>
drivers/base/regmap/regmap.c
patch
|
blob
|
history
diff --git
a/drivers/base/regmap/regmap.c
b/drivers/base/regmap/regmap.c
index cf3565cae93d951ee7c77ddd7775e5aa878521b7..0eef4da1ac61f1deb274e56fb5601cfc6275c193 100644
(file)
--- a/
drivers/base/regmap/regmap.c
+++ b/
drivers/base/regmap/regmap.c
@@
-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;