Browse Source

regmap: mmio: Explicitly say little endian is the defualt in the bus config

Otherwise the DT parsing will default to big endian if nothing is
specified.

Reported-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Mark Brown 9 years ago
parent
commit
2ed94f6fde
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/base/regmap/regmap-mmio.c

+ 1 - 0
drivers/base/regmap/regmap-mmio.c

@@ -212,6 +212,7 @@ static const struct regmap_bus regmap_mmio = {
 	.reg_write = regmap_mmio_write,
 	.reg_read = regmap_mmio_read,
 	.free_context = regmap_mmio_free_context,
+	.val_format_endian_default = REGMAP_ENDIAN_LITTLE,
 };
 
 static struct regmap_mmio_context *regmap_mmio_gen_context(struct device *dev,