drm/amd/display: Use int for calculating vline start
authorHarry Wentland <harry.wentland@amd.com>
Tue, 10 Apr 2018 20:06:34 +0000 (16:06 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 May 2018 18:44:14 +0000 (13:44 -0500)
commit403dc5e8aab7b3d18a625e516698ea49d2be432e
treeefb397ad060e98b250cc5ecf124bfb840a60c55e
parent34ff937029edf708d7db0d450b5f505969b68950
drm/amd/display: Use int for calculating vline start

We are not sure these calculations will never need negative numbers. Use
signed integers and warn and cap at 0 if this ever happens.

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c