lkml.org 
[lkml]   [2022]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v4 02/16] phy: qcom-qmp-pcie: move device-id table
    Date
    Move the device-id table below probe() and next to the driver structure
    to keep the driver callback functions grouped together.

    Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
    Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
    ---
    drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 90 ++++++++++++------------
    1 file changed, 45 insertions(+), 45 deletions(-)

    diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c
    index 4e5111d19692..e66f6adc404b 100644
    --- a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c
    +++ b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c
    @@ -2280,51 +2280,6 @@ static int qmp_pcie_create(struct device *dev, struct device_node *np, int id,
    return 0;
    }

    -static const struct of_device_id qmp_pcie_of_match_table[] = {
    - {
    - .compatible = "qcom,ipq6018-qmp-pcie-phy",
    - .data = &ipq6018_pciephy_cfg,
    - }, {
    - .compatible = "qcom,ipq8074-qmp-gen3-pcie-phy",
    - .data = &ipq8074_pciephy_gen3_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,
    - }, {
    - .compatible = "qcom,sdm845-qhp-pcie-phy",
    - .data = &sdm845_qhp_pciephy_cfg,
    - }, {
    - .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,
    - }, {
    - .compatible = "qcom,sm8250-qmp-gen3x2-pcie-phy",
    - .data = &sm8250_qmp_gen3x2_pciephy_cfg,
    - }, {
    - .compatible = "qcom,sm8250-qmp-modem-pcie-phy",
    - .data = &sm8250_qmp_gen3x2_pciephy_cfg,
    - }, {
    - .compatible = "qcom,sm8450-qmp-gen3x1-pcie-phy",
    - .data = &sm8450_qmp_gen3x1_pciephy_cfg,
    - }, {
    - .compatible = "qcom,sm8450-qmp-gen4x2-pcie-phy",
    - .data = &sm8450_qmp_gen4x2_pciephy_cfg,
    - },
    - { },
    -};
    -MODULE_DEVICE_TABLE(of, qmp_pcie_of_match_table);
    -
    static int qmp_pcie_probe(struct platform_device *pdev)
    {
    struct qcom_qmp *qmp;
    @@ -2408,6 +2363,51 @@ static int qmp_pcie_probe(struct platform_device *pdev)
    return ret;
    }

    +static const struct of_device_id qmp_pcie_of_match_table[] = {
    + {
    + .compatible = "qcom,ipq6018-qmp-pcie-phy",
    + .data = &ipq6018_pciephy_cfg,
    + }, {
    + .compatible = "qcom,ipq8074-qmp-gen3-pcie-phy",
    + .data = &ipq8074_pciephy_gen3_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,
    + }, {
    + .compatible = "qcom,sdm845-qhp-pcie-phy",
    + .data = &sdm845_qhp_pciephy_cfg,
    + }, {
    + .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,
    + }, {
    + .compatible = "qcom,sm8250-qmp-gen3x2-pcie-phy",
    + .data = &sm8250_qmp_gen3x2_pciephy_cfg,
    + }, {
    + .compatible = "qcom,sm8250-qmp-modem-pcie-phy",
    + .data = &sm8250_qmp_gen3x2_pciephy_cfg,
    + }, {
    + .compatible = "qcom,sm8450-qmp-gen3x1-pcie-phy",
    + .data = &sm8450_qmp_gen3x1_pciephy_cfg,
    + }, {
    + .compatible = "qcom,sm8450-qmp-gen4x2-pcie-phy",
    + .data = &sm8450_qmp_gen4x2_pciephy_cfg,
    + },
    + { },
    +};
    +MODULE_DEVICE_TABLE(of, qmp_pcie_of_match_table);
    +
    static struct platform_driver qmp_pcie_driver = {
    .probe = qmp_pcie_probe,
    .driver = {
    --
    2.37.3
    \
     
     \ /
      Last update: 2022-10-28 15:39    [W:18.019 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site