drm/amd/display: fix 32 bit compilation errors in dc_dmub_srv.c
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 8 Jul 2022 05:17:57 +0000 (01:17 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 8 Jul 2022 16:02:08 +0000 (12:02 -0400)
commitc59d73d43fce92e79eddc047e1961054f1284384
tree39e1851f67aa5f2ecf4960b987efd9b1a3db2ac4
parent8c96e566d95aaad910a54aa0b21b7753eb615a00
drm/amd/display: fix 32 bit compilation errors in dc_dmub_srv.c

There are several things wrong here.  First, none of these
numbers are FP, so there is no need to cast to double.  Next
make sure to use proper 64 bit division helpers.

Fixes: 85f4bc0c333c ("drm/amd/display: Add SubVP required code")
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/Makefile
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c