aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2016-03-31 13:18:09 -0400
committerMark Brown <broonie@kernel.org>2016-03-31 16:41:12 -0400
commit2ed94f6fde066fb37bc3553b786edb805561699e (patch)
tree18405717bd7018065ba2e3bf3c964e38e0549427
parentf55532a0c0b8bb6148f4e07853b876ef73bc69ca (diff)
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>
-rw-r--r--drivers/base/regmap/regmap-mmio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/base/regmap/regmap-mmio.c b/drivers/base/regmap/regmap-mmio.c
index 7526906ca080..1aa26aa31f6a 100644
--- a/drivers/base/regmap/regmap-mmio.c
+++ b/drivers/base/regmap/regmap-mmio.c
@@ -212,6 +212,7 @@ static const struct regmap_bus regmap_mmio = {
212 .reg_write = regmap_mmio_write, 212 .reg_write = regmap_mmio_write,
213 .reg_read = regmap_mmio_read, 213 .reg_read = regmap_mmio_read,
214 .free_context = regmap_mmio_free_context, 214 .free_context = regmap_mmio_free_context,
215 .val_format_endian_default = REGMAP_ENDIAN_LITTLE,
215}; 216};
216 217
217static struct regmap_mmio_context *regmap_mmio_gen_context(struct device *dev, 218static struct regmap_mmio_context *regmap_mmio_gen_context(struct device *dev,