phy: qcom-qmp-pcie: sort device-id table
authorJohan Hovold <johan+linaro@kernel.org>
Sat, 5 Nov 2022 14:59:24 +0000 (15:59 +0100)
committerVinod Koul <vkoul@kernel.org>
Thu, 10 Nov 2022 07:04:53 +0000 (12:34 +0530)
Sort the device-id table by compatible string to make it easier to find
and add new entries.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20221105145939.20318-2-johan+linaro@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-pcie.c

index 7c81667..4e5111d 100644 (file)
@@ -2282,17 +2282,17 @@ static int qmp_pcie_create(struct device *dev, struct device_node *np, int id,
 
 static const struct of_device_id qmp_pcie_of_match_table[] = {
        {
-               .compatible = "qcom,msm8998-qmp-pcie-phy",
-               .data = &msm8998_pciephy_cfg,
-       }, {
-               .compatible = "qcom,ipq8074-qmp-pcie-phy",
-               .data = &ipq8074_pciephy_cfg,
+               .compatible = "qcom,ipq6018-qmp-pcie-phy",
+               .data = &ipq6018_pciephy_cfg,
        }, {
                .compatible = "qcom,ipq8074-qmp-gen3-pcie-phy",
                .data = &ipq8074_pciephy_gen3_cfg,
        }, {
-               .compatible = "qcom,ipq6018-qmp-pcie-phy",
-               .data = &ipq6018_pciephy_cfg,
+               .compatible = "qcom,ipq8074-qmp-pcie-phy",
+               .data = &ipq8074_pciephy_cfg,
+       }, {
+               .compatible = "qcom,msm8998-qmp-pcie-phy",
+               .data = &msm8998_pciephy_cfg,
        }, {
                .compatible = "qcom,sc8180x-qmp-pcie-phy",
                .data = &sc8180x_pciephy_cfg,
@@ -2303,6 +2303,9 @@ static const struct of_device_id qmp_pcie_of_match_table[] = {
                .compatible = "qcom,sdm845-qmp-pcie-phy",
                .data = &sdm845_qmp_pciephy_cfg,
        }, {
+               .compatible = "qcom,sdx55-qmp-pcie-phy",
+               .data = &sdx55_qmp_pciephy_cfg,
+       }, {
                .compatible = "qcom,sm8250-qmp-gen3x1-pcie-phy",
                .data = &sm8250_qmp_gen3x1_pciephy_cfg,
        }, {
@@ -2312,9 +2315,6 @@ static const struct of_device_id qmp_pcie_of_match_table[] = {
                .compatible = "qcom,sm8250-qmp-modem-pcie-phy",
                .data = &sm8250_qmp_gen3x2_pciephy_cfg,
        }, {
-               .compatible = "qcom,sdx55-qmp-pcie-phy",
-               .data = &sdx55_qmp_pciephy_cfg,
-       }, {
                .compatible = "qcom,sm8450-qmp-gen3x1-pcie-phy",
                .data = &sm8450_qmp_gen3x1_pciephy_cfg,
        }, {