phy: qualcomm: fix setting of tx_deamp_3_5db when device property read fails
authorColin Ian King <colin.king@canonical.com>
Tue, 21 Jul 2020 15:06:13 +0000 (16:06 +0100)
committerVinod Koul <vkoul@kernel.org>
Tue, 21 Jul 2020 17:41:48 +0000 (23:11 +0530)
commit3d7b0ca5300bd01b176f2b4c10e173db802560d8
tree689fd7f73fac58c27d7ff0d914cf0c6c11c33ffa
parent783f6d3dcf35f7b63783756710bebcecb3067f83
phy: qualcomm: fix setting of tx_deamp_3_5db when device property read fails

Currently when reading of the device property for "qcom,tx-deamp_3_5db"
fails the default is being assigned incorrectly to phy_dwc3->rx_eq. This
looks like a copy-n-paste error and in fact should be assigning the
default instead to phy_dwc3->tx_deamp_3_5db

Addresses-Coverity: ("Copy-paste error")
Fixes: ef19b117b834 ("phy: qualcomm: add qcom ipq806x dwc usb phy driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20200721150613.416876-1-colin.king@canonical.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c