soc: qcom: socinfo: Fix soc_id order
authorStephan Gerhold <stephan@gerhold.net>
Wed, 4 Jan 2023 11:53:45 +0000 (12:53 +0100)
committerBjorn Andersson <andersson@kernel.org>
Wed, 18 Jan 2023 23:14:39 +0000 (17:14 -0600)
The soc_id array is mostly ordered by the numeric "msm-id" defined in
qcom,ids.h but some recent entries were added at the wrong place.

While it does not make a functional difference it does make it harder
to regenerate the entire array after adding a bunch of new IDs.

Fixes: de320c07da3d ("soc: qcom: socinfo: Add MSM8956/76 SoC IDs to the soc_id table")
Fixes: 147f6534b8ff ("soc: qcom: socinfo: Add SM8550 ID")
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230104115348.25046-2-stephan@gerhold.net
drivers/soc/qcom/socinfo.c

index 10efdbcfdf0537c3bc3d452936d88f9f4a6e2d00..7258527816b0a6d5462593ff8b03d839e79c536c 100644 (file)
@@ -257,8 +257,6 @@ static const struct soc_id soc_id[] = {
        { qcom_board_id(MSM8926) },
        { qcom_board_id(MSM8326) },
        { qcom_board_id(MSM8916) },
-       { qcom_board_id(MSM8956) },
-       { qcom_board_id(MSM8976) },
        { qcom_board_id(MSM8994) },
        { qcom_board_id_named(APQ8074PRO_AA, "APQ8074PRO-AA") },
        { qcom_board_id_named(APQ8074PRO_AB, "APQ8074PRO-AB") },
@@ -290,6 +288,8 @@ static const struct soc_id soc_id[] = {
        { qcom_board_id(MSM8616) },
        { qcom_board_id(MSM8992) },
        { qcom_board_id(APQ8094) },
+       { qcom_board_id(MSM8956) },
+       { qcom_board_id(MSM8976) },
        { qcom_board_id(MDM9607) },
        { qcom_board_id(APQ8096) },
        { qcom_board_id(MSM8998) },
@@ -348,7 +348,6 @@ static const struct soc_id soc_id[] = {
        { qcom_board_id(IPQ6005) },
        { qcom_board_id(QRB5165) },
        { qcom_board_id(SM8450) },
-       { qcom_board_id(SM8550) },
        { qcom_board_id(SM7225) },
        { qcom_board_id(SA8295P) },
        { qcom_board_id(SA8540P) },
@@ -359,6 +358,7 @@ static const struct soc_id soc_id[] = {
        { qcom_board_id(SC7280) },
        { qcom_board_id(SC7180P) },
        { qcom_board_id(SM6375) },
+       { qcom_board_id(SM8550) },
        { qcom_board_id(QRU1000) },
        { qcom_board_id(QDU1000) },
        { qcom_board_id(QDU1010) },