Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

phy: qcom-qmp-ufs: Rename qmp_ufs_power_off

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>

authored by

Nitin Rawat and committed by
Vinod Koul
acc6b0d7 7bcf4936

+1 -18
+1 -18
drivers/phy/qualcomm/phy-qcom-qmp-ufs.c
··· 1849 1849 qphy_clrbits(qmp->pcs, cfg->regs[QPHY_PCS_POWER_DOWN_CONTROL], 1850 1850 SW_PWRDN); 1851 1851 1852 - return 0; 1853 - } 1854 - 1855 - static int qmp_ufs_exit(struct phy *phy) 1856 - { 1857 - struct qmp_ufs *qmp = phy_get_drvdata(phy); 1858 - 1859 1852 qmp_ufs_com_exit(qmp); 1860 1853 1861 1854 return 0; 1862 - } 1863 - 1864 - static int qmp_ufs_disable(struct phy *phy) 1865 - { 1866 - int ret; 1867 - 1868 - ret = qmp_ufs_power_off(phy); 1869 - if (ret) 1870 - return ret; 1871 - return qmp_ufs_exit(phy); 1872 1855 } 1873 1856 1874 1857 static int qmp_ufs_set_mode(struct phy *phy, enum phy_mode mode, int submode) ··· 1902 1919 static const struct phy_ops qcom_qmp_ufs_phy_ops = { 1903 1920 .init = qmp_ufs_phy_init, 1904 1921 .power_on = qmp_ufs_power_on, 1905 - .power_off = qmp_ufs_disable, 1922 + .power_off = qmp_ufs_power_off, 1906 1923 .calibrate = qmp_ufs_phy_calibrate, 1907 1924 .set_mode = qmp_ufs_set_mode, 1908 1925 .owner = THIS_MODULE,