mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
Following changes are done to common.top code and UT: 1.Change return type for device_info_parse_enum to void as it can never return non-zero value. - This is a private HAL and is only called by get_device_info HAL. - It gets called only for table entry with entry type = enum. - So there is no error path left. This helps remove unnecessary branches and get better branch coverage 2. Check if the data parsing function pointers are not NULL before parsing the device tree. Return error if there are no functions to interpret the device_info table registers. Add checks for same in unit test test_get_device_info(). JIRA NVGPU-2204 Change-Id: I8833da7aa58b070d19b50ee17f64362f301bd792 Signed-off-by: tkudav <tkudav@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2269603 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>