diff options
author | Harry Wentland <harry.wentland@amd.com> | 2017-02-06 11:23:20 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-09-26 17:13:23 -0400 |
commit | ca709397b5bf904ef04eb981d3b50e8e93c15394 (patch) | |
tree | 04b40e61cf2051385397d2715a31b7e3041e107c /drivers | |
parent | 71f7256e41ad036215a69e6bf561f7d4a541f150 (diff) | |
download | linux-ca709397b5bf904ef04eb981d3b50e8e93c15394.tar.bz2 |
drm/amd/display: Fix 64-bit division
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dce/dce_abm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_abm.c b/drivers/gpu/drm/amd/display/dc/dce/dce_abm.c index f4696bf14a70..7005ebb28d46 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_abm.c +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_abm.c @@ -94,7 +94,7 @@ static unsigned int get_current_backlight(struct dce_abm *abm_dce) if (bl_period == 0) bl_period = 0xFFFF; - current_backlight /= bl_period; + current_backlight = div_u64(current_backlight, bl_period); current_backlight = (current_backlight + 1) >> 1; current_backlight = (uint64_t)(current_backlight) * bl_period; |