diff options
| author | Qinglang Miao <[email protected]> | 2020-08-10 12:59:19 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2020-08-10 21:26:53 +0000 |
| commit | d6e6dfb287443b4197afde4632784ba640944648 (patch) | |
| tree | be8ae7f72410cf4b3e006cc4c787ef95f1fc9683 /drivers/gpu/drm/amd/display/dc/bios/command_table.c | |
| parent | drm/amdgpu/display: drop unused function (diff) | |
| download | kernel-d6e6dfb287443b4197afde4632784ba640944648.tar.gz kernel-d6e6dfb287443b4197afde4632784ba640944648.zip | |
drm/amd/display: convert to use le16_add_cpu()
Convert cpu_to_le16(le16_to_cpu(E1) + E2) to use le16_add_cpu().
Signed-off-by: Qinglang Miao <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/bios/command_table.c')
| -rw-r--r-- | drivers/gpu/drm/amd/display/dc/bios/command_table.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/bios/command_table.c b/drivers/gpu/drm/amd/display/dc/bios/command_table.c index 5815983caaf8..070459e3e407 100644 --- a/drivers/gpu/drm/amd/display/dc/bios/command_table.c +++ b/drivers/gpu/drm/amd/display/dc/bios/command_table.c @@ -1877,9 +1877,7 @@ static enum bp_result set_crtc_using_dtd_timing_v3( * but it is 4 either from Edid data (spec CEA 861) * or CEA timing table. */ - params.usV_SyncOffset = - cpu_to_le16(le16_to_cpu(params.usV_SyncOffset) + 1); - + le16_add_cpu(¶ms.usV_SyncOffset, 1); } } |
