mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
6191131ae72ac6432062dca15e8a7eb5c8b43f02
The functions tegra_machine_get_bclk_ratio() and tegra_machine_get_bclk_ratio_t18x() have a return type of unsigned int but can return a negative error code on failure. This may cause users of this function to get a very large bit clock ratio. Although it is improbable that the bit clock ratio will ever be large enough to overflow a signed integer, it is best to avoid changing the type of the bit clock ratio variable. Therefore, return the bit clock ratio via a pointer passed to the functions tegra_machine_get_bclk_ratio() and tegra_machine_get_bclk_ratio_t18x(). Bug 2025176 Change-Id: Ia6e9a1ef68f53ebb594746f812de65a18269925f Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1655982 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Description
No description provided