summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/max98926.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2023-07-30 23:18:25 +0300
committerMark Brown <broonie@kernel.org>2023-08-07 16:41:03 +0300
commitddef7518e76d832ab9f6d0430ad28cc0e04c083a (patch)
treeeed70f1d87c54231f62bdd89d45bce89efa4c30f /sound/soc/codecs/max98926.c
parent7136368a2f3fda492d696bdeddf4d2af71fa8b92 (diff)
downloadlinux-ddef7518e76d832ab9f6d0430ad28cc0e04c083a.tar.xz
ASoC: codecs: max9892x: Unify interleave mode OF property
MAX98926 and MAX98927 are quite similar and use the same bindings, although drivers were not implementing them in the same way: MAX98926 has boolean "interleave-mode" but MAX98927 has uint32 "interleave_mode". Unify them under maxim,interleave-mode, already used in other Maxim device. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20230730201826.70453-2-krzysztof.kozlowski@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/max98926.c')
-rw-r--r--sound/soc/codecs/max98926.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/max98926.c b/sound/soc/codecs/max98926.c
index bdc508e23e59..922ce0dc4e60 100644
--- a/sound/soc/codecs/max98926.c
+++ b/sound/soc/codecs/max98926.c
@@ -528,7 +528,8 @@ static int max98926_i2c_probe(struct i2c_client *i2c)
"Failed to allocate regmap: %d\n", ret);
goto err_out;
}
- if (of_property_read_bool(i2c->dev.of_node, "interleave-mode"))
+ if (of_property_read_bool(i2c->dev.of_node, "maxim,interleave-mode") ||
+ of_property_read_bool(i2c->dev.of_node, "interleave-mode"))
max98926->interleave_mode = true;
if (!of_property_read_u32(i2c->dev.of_node, "vmon-slot-no", &value)) {