]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
phy: qcom-qmp-ufs: Rename qmp_ufs_power_off
authorNitin Rawat <quic_nitirawa@quicinc.com>
Mon, 26 May 2025 15:38:18 +0000 (21:08 +0530)
committerVinod Koul <vkoul@kernel.org>
Sun, 15 Jun 2025 14:23:24 +0000 (19:53 +0530)
Rename qmp_ufs_disable to qmp_ufs_power_off to better represent its
functionality. Additionally, inline qmp_ufs_exit into qmp_ufs_power_off
function to preserve the functionality of .power_off.

There is no functional change.

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Nitin Rawat <quic_nitirawa@quicinc.com>
Link: https://lore.kernel.org/r/20250526153821.7918-8-quic_nitirawa@quicinc.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-ufs.c

index eda0a59918ea5d0a975e636b24e91a225ea91da1..e0dc5fa43dee3300b36804cfc8f6a026d51c0277 100644 (file)
@@ -1849,28 +1849,11 @@ static int qmp_ufs_power_off(struct phy *phy)
        qphy_clrbits(qmp->pcs, cfg->regs[QPHY_PCS_POWER_DOWN_CONTROL],
                        SW_PWRDN);
 
-       return 0;
-}
-
-static int qmp_ufs_exit(struct phy *phy)
-{
-       struct qmp_ufs *qmp = phy_get_drvdata(phy);
-
        qmp_ufs_com_exit(qmp);
 
        return 0;
 }
 
-static int qmp_ufs_disable(struct phy *phy)
-{
-       int ret;
-
-       ret = qmp_ufs_power_off(phy);
-       if (ret)
-               return ret;
-       return qmp_ufs_exit(phy);
-}
-
 static int qmp_ufs_set_mode(struct phy *phy, enum phy_mode mode, int submode)
 {
        struct qmp_ufs *qmp = phy_get_drvdata(phy);
@@ -1919,7 +1902,7 @@ static int qmp_ufs_phy_init(struct phy *phy)
 static const struct phy_ops qcom_qmp_ufs_phy_ops = {
        .init           = qmp_ufs_phy_init,
        .power_on       = qmp_ufs_power_on,
-       .power_off      = qmp_ufs_disable,
+       .power_off      = qmp_ufs_power_off,
        .calibrate      = qmp_ufs_phy_calibrate,
        .set_mode       = qmp_ufs_set_mode,
        .owner          = THIS_MODULE,