Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <miaoqinglang@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Qinglang Miao and committed by
Alex Deucher
d6e6dfb2 200b86f9

+2 -7
+1 -3
drivers/gpu/drm/amd/display/dc/bios/command_table.c
··· 1877 1877 * but it is 4 either from Edid data (spec CEA 861) 1878 1878 * or CEA timing table. 1879 1879 */ 1880 - params.usV_SyncOffset = 1881 - cpu_to_le16(le16_to_cpu(params.usV_SyncOffset) + 1); 1882 - 1880 + le16_add_cpu(&params.usV_SyncOffset, 1); 1883 1881 } 1884 1882 } 1885 1883
+1 -4
drivers/gpu/drm/amd/display/dc/bios/command_table2.c
··· 569 569 * but it is 4 either from Edid data (spec CEA 861) 570 570 * or CEA timing table. 571 571 */ 572 - params.v_syncoffset = 573 - cpu_to_le16(le16_to_cpu(params.v_syncoffset) + 574 - 1); 575 - 572 + le16_add_cpu(&params.v_syncoffset, 1); 576 573 } 577 574 } 578 575