mfd: arizona: Specify regmap endianness
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Mon, 20 Jul 2015 15:53:47 +0000 (16:53 +0100)
committerLee Jones <lee.jones@linaro.org>
Tue, 11 Aug 2015 14:08:56 +0000 (15:08 +0100)
Explicitly set the regmap endianness instead of relying on
the default being correct.

Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/wm5102-tables.c
drivers/mfd/wm5110-tables.c
drivers/mfd/wm8997-tables.c
drivers/mfd/wm8998-tables.c

index 5a5b371e46145ef48f1c5ed43d4326fd6b6e6eb4..a4997a5c02ceddec4fbe11a379f35e216c62c30a 100644 (file)
@@ -1926,6 +1926,8 @@ const struct regmap_config wm5102_spi_regmap = {
        .reg_bits = 32,
        .pad_bits = 16,
        .val_bits = 16,
+       .reg_format_endian = REGMAP_ENDIAN_BIG,
+       .val_format_endian = REGMAP_ENDIAN_BIG,
 
        .max_register = WM5102_MAX_REGISTER,
        .readable_reg = wm5102_readable_register,
@@ -1940,6 +1942,8 @@ EXPORT_SYMBOL_GPL(wm5102_spi_regmap);
 const struct regmap_config wm5102_i2c_regmap = {
        .reg_bits = 32,
        .val_bits = 16,
+       .reg_format_endian = REGMAP_ENDIAN_BIG,
+       .val_format_endian = REGMAP_ENDIAN_BIG,
 
        .max_register = WM5102_MAX_REGISTER,
        .readable_reg = wm5102_readable_register,
index 4cccfb3e7289b373d6e9239c8e8834415389b605..19785a6bcac6b19986281057521f70ae836e2d1f 100644 (file)
@@ -2997,6 +2997,8 @@ const struct regmap_config wm5110_spi_regmap = {
        .reg_bits = 32,
        .pad_bits = 16,
        .val_bits = 16,
+       .reg_format_endian = REGMAP_ENDIAN_BIG,
+       .val_format_endian = REGMAP_ENDIAN_BIG,
 
        .max_register = WM5110_MAX_REGISTER,
        .readable_reg = wm5110_readable_register,
@@ -3011,6 +3013,8 @@ EXPORT_SYMBOL_GPL(wm5110_spi_regmap);
 const struct regmap_config wm5110_i2c_regmap = {
        .reg_bits = 32,
        .val_bits = 16,
+       .reg_format_endian = REGMAP_ENDIAN_BIG,
+       .val_format_endian = REGMAP_ENDIAN_BIG,
 
        .max_register = WM5110_MAX_REGISTER,
        .readable_reg = wm5110_readable_register,
index daa2498fc256b355026617344340019b915753ec..2a91473dc1ee33b641aeac72afb4346816dafb8e 100644 (file)
@@ -1519,6 +1519,8 @@ static bool wm8997_volatile_register(struct device *dev, unsigned int reg)
 const struct regmap_config wm8997_i2c_regmap = {
        .reg_bits = 32,
        .val_bits = 16,
+       .reg_format_endian = REGMAP_ENDIAN_BIG,
+       .val_format_endian = REGMAP_ENDIAN_BIG,
 
        .max_register = WM8997_MAX_REGISTER,
        .readable_reg = wm8997_readable_register,
index 60e8622df9620381d80ddf1fe0f8235062ad4a71..e6de3cd8a9aacf0abdf45015bc8b850d584ffaa1 100644 (file)
@@ -1580,6 +1580,8 @@ static bool wm8998_volatile_register(struct device *dev, unsigned int reg)
 const struct regmap_config wm8998_i2c_regmap = {
        .reg_bits = 32,
        .val_bits = 16,
+       .reg_format_endian = REGMAP_ENDIAN_BIG,
+       .val_format_endian = REGMAP_ENDIAN_BIG,
 
        .max_register = WM8998_MAX_REGISTER,
        .readable_reg = wm8998_readable_register,