phy: qualcomm: qmp-ufs: rename qmp_ufs_offsets_v5 to qmp_ufs_offsets
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fri, 13 Jan 2023 19:55:15 +0000 (21:55 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 18 Jan 2023 17:23:00 +0000 (22:53 +0530)
All currently known QMP UFS PHYs have the same offsets for register
sub-regions. Instead of using qmp_ufs_offsets_v5 for older generations
of PHYs, rename the offsets struct instance to remove _v5 suffix.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20230113195515.407866-1-dmitry.baryshkov@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-ufs.c

index 110d8fb9309f7eeaba0fe6478585701dc6ad24d7..b66a7d1c2e99e5c9a115f45e79d2cfe3d80f0cc9 100644 (file)
@@ -717,7 +717,7 @@ static const char * const qmp_phy_vreg_l[] = {
        "vdda-phy", "vdda-pll",
 };
 
-static const struct qmp_ufs_offsets qmp_ufs_offsets_v5 = {
+static const struct qmp_ufs_offsets qmp_ufs_offsets = {
        .serdes         = 0,
        .pcs            = 0xc00,
        .tx             = 0x400,
@@ -752,7 +752,7 @@ static const struct qmp_phy_cfg msm8996_ufsphy_cfg = {
 static const struct qmp_phy_cfg sc8280xp_ufsphy_cfg = {
        .lanes                  = 2,
 
-       .offsets                = &qmp_ufs_offsets_v5,
+       .offsets                = &qmp_ufs_offsets,
 
        .tbls = {
                .serdes         = sm8350_ufsphy_serdes,
@@ -812,7 +812,7 @@ static const struct qmp_phy_cfg sdm845_ufsphy_cfg = {
 static const struct qmp_phy_cfg sm6115_ufsphy_cfg = {
        .lanes                  = 1,
 
-       .offsets                = &qmp_ufs_offsets_v5,
+       .offsets                = &qmp_ufs_offsets,
 
        .tbls = {
                .serdes         = sm6115_ufsphy_serdes,