Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1363419
| From | Mark Brown <broonie@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] regmap: mmio: Fix value endianness selection |
| Date | 2016-03-23 14:20 +0100 |
| Message-ID | <rfQRz-3Rd-7@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Currently when selecting value endianness we check the register
endiannes, not the value endianness.
Reported-by: Alexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
drivers/base/regmap/regmap-mmio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/base/regmap/regmap-mmio.c b/drivers/base/regmap/regmap-mmio.c
index 7526906ca080..b27573c69af7 100644
--- 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
--
2.7.0
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] regmap: mmio: Fix value endianness selection Mark Brown <broonie@kernel.org> - 2016-03-23 14:20 +0100
Re: [PATCH] regmap: mmio: Fix value endianness selection Alexander Stein <alexander.stein@systec-electronic.com> - 2016-03-23 14:40 +0100
Applied "regmap: mmio: Fix value endianness selection" to the regmap tree Mark Brown <broonie@kernel.org> - 2016-03-23 14:50 +0100
Re: [PATCH] regmap: mmio: Fix value endianness selection Alexander Stein <alexander.stein@systec-electronic.com> - 2016-03-23 15:30 +0100
Re: [PATCH] regmap: mmio: Fix value endianness selection Mark Brown <broonie@kernel.org> - 2016-03-25 12:30 +0100
Re: [PATCH] regmap: mmio: Fix value endianness selection Alexander Stein <alexander.stein@systec-electronic.com> - 2016-03-29 08:20 +0200
Re: [PATCH] regmap: mmio: Fix value endianness selection Stefan Agner <stefan@agner.ch> - 2016-03-29 08:20 +0200
csiph-web