phy: qcom-qmp: Use register defines
authorVinod Koul <vkoul@kernel.org>
Mon, 23 Dec 2019 14:30:43 +0000 (20:00 +0530)
committerKishon Vijay Abraham I <kishon@ti.com>
Wed, 8 Jan 2020 07:28:06 +0000 (12:58 +0530)
We already define register offsets so use them in register layout.

Signed-off-by: Vinod Koul <vkoul@kernel.org>
Reviewed-by: Manu Gautam <mgautam@codeaurora.org>
Reviewed-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/qualcomm/phy-qcom-qmp.c

index 091e20303a14d6b3569eb806eb3bf72beb56ae4e..7f6ff5da72333a09d486f10f746ac0fd6cc8be6e 100644 (file)
@@ -166,8 +166,8 @@ static const unsigned int sdm845_ufsphy_regs_layout[] = {
 };
 
 static const unsigned int sm8150_ufsphy_regs_layout[] = {
-       [QPHY_START_CTRL]               = 0x00,
-       [QPHY_PCS_READY_STATUS]         = 0x180,
+       [QPHY_START_CTRL]               = QPHY_V4_PHY_START,
+       [QPHY_PCS_READY_STATUS]         = QPHY_V4_PCS_READY_STATUS,
 };
 
 static const struct qmp_phy_init_tbl msm8996_pcie_serdes_tbl[] = {