]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
phy: qcom: ufs: drop unused ufsphy_v2_regs_layout
authorNeil Armstrong <neil.armstrong@linaro.org>
Wed, 16 Oct 2024 07:43:56 +0000 (09:43 +0200)
committerCaleb Connolly <caleb.connolly@linaro.org>
Wed, 20 Nov 2024 16:57:57 +0000 (17:57 +0100)
The ufsphy_v2_regs_layout is not used, drop it and fix:
phy-qcom-qmp-ufs.c:87:27: warning: ‘ufsphy_v2_regs_layout’ defined but not used [-Wunused-const-variable=]

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org>
drivers/phy/qcom/phy-qcom-qmp-ufs.c

index 8908a34df548340556d92ac8ca488dbbbd0e293a..5b17f3aee676cbfaf31af3395dcec4360684a073 100644 (file)
@@ -84,12 +84,6 @@ enum qphy_reg_layout {
        QPHY_LAYOUT_SIZE
 };
 
-static const unsigned int ufsphy_v2_regs_layout[QPHY_LAYOUT_SIZE] = {
-       [QPHY_START_CTRL]               = QPHY_V2_PCS_UFS_PHY_START,
-       [QPHY_PCS_READY_STATUS]         = QPHY_V2_PCS_UFS_READY_STATUS,
-       [QPHY_PCS_POWER_DOWN_CONTROL]   = QPHY_V2_PCS_UFS_POWER_DOWN_CONTROL,
-};
-
 static const unsigned int ufsphy_v3_regs_layout[QPHY_LAYOUT_SIZE] = {
        [QPHY_START_CTRL]               = QPHY_V3_PCS_UFS_PHY_START,
        [QPHY_PCS_READY_STATUS]         = QPHY_V3_PCS_UFS_READY_STATUS,