]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: dts: qcom: pmi8994: Remove hardcoded linear WLED enabled-strings
authorMarijn Suijten <marijn.suijten@somainline.org>
Thu, 7 Oct 2021 21:33:58 +0000 (23:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Sep 2023 10:22:37 +0000 (12:22 +0200)
commit92919d98e6730f7f79e2be0b5932f7e6d66a911f
tree99d7cbe1e3c7b31a6d61f9a9ca0eae1771da7a99
parent3659098572426450289f712b43d538c22b088b46
arm64: dts: qcom: pmi8994: Remove hardcoded linear WLED enabled-strings

[ Upstream commit 9b729b0932d0e6097d9f103e9dd149ef10881f43 ]

The driver now sets an appropriate default for WLED4 (and WLED5) just
like WLED3 making this linear array from 0-3 redundant.  In addition the
driver is now able to parse arrays of variable length solving the "all
four strings *have to* be defined" comment.

Besides the driver will now warn when both properties are specified to
prevent ambiguity: the length of the array is enough to imply a set
number of strings.

Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-By: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20211007213400.258371-12-marijn.suijten@somainline.org
Stable-dep-of: 8db944326903 ("arm64: dts: qcom: pmi8994: Add missing OVP interrupt")
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm64/boot/dts/qcom/pmi8994.dtsi