PCI: tegra194: Use Mbps_to_icc() macro for setting icc speed
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Wed, 4 Oct 2023 16:44:30 +0000 (22:14 +0530)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Sat, 14 Oct 2023 19:19:37 +0000 (19:19 +0000)
commit85e9eb3e7727e98cbf7b9bf475677f2a64be06b8
tree34641c764f78f09c2e7720c1e507fbc3a1800412
parentdc2f2a9d1cf2c505efbb8b7e782a7f22e635f4bf
PCI: tegra194: Use Mbps_to_icc() macro for setting icc speed

PCIe speed returned by the PCIE_SPEED2MBS_ENC() macro is in Mbps. So
instead of converting it to MBps explicitly and using the MBps_to_icc()
macro, let's use the Mbps_to_icc() macro to pass the value directly.

Link: https://lore.kernel.org/linux-pci/20231004164430.39662-3-manivannan.sadhasivam@linaro.org
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Cc: Vidya Sagar <vidyas@nvidia.com>
drivers/pci/controller/dwc/pcie-tegra194.c