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:
d25263d
)
regmap: mmio: Fix value endianness selection
author
Mark Brown
<
[email protected]
>
Wed, 23 Mar 2016 12:13:12 +0000
(12:13 +0000)
committer
Mark Brown
<
[email protected]
>
Wed, 23 Mar 2016 13:41:06 +0000
(13:41 +0000)
Currently when selecting value endianness we check the register
endiannes, not the value endianness.
Reported-by: Alexander Stein <
[email protected]
>
Tested-by: Alexander Stein <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
drivers/base/regmap/regmap-mmio.c
patch
|
blob
|
history
diff --git
a/drivers/base/regmap/regmap-mmio.c
b/drivers/base/regmap/regmap-mmio.c
index 7526906ca080f81dcff1499b7e57c2ff0b79569e..b27573c69af7437507b2bb1ba1b3e3d79d5c2d3c 100644
(file)
--- a/
drivers/base/regmap/regmap-mmio.c
+++ b/
drivers/base/regmap/regmap-mmio.c
@@
-245,7
+245,7
@@
static struct regmap_mmio_context *regmap_mmio_gen_context(struct device *dev,
ctx->val_bytes = config->val_bits / 8;
ctx->clk = ERR_PTR(-ENODEV);
- switch (config->
reg
_format_endian) {
+ switch (config->
val
_format_endian) {
case REGMAP_ENDIAN_DEFAULT:
case REGMAP_ENDIAN_LITTLE:
#ifdef __LITTLE_ENDIAN