aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorLuben Tuikov <[email protected]>2021-03-27 00:13:10 +0000
committerAlex Deucher <[email protected]>2021-07-01 04:24:41 +0000
commit803c6ebdd32808834556b20548df9a1d079e4f24 (patch)
tree5dfc041247bb050abf3239a770107a604ae6f8e8 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parentdrm/amdgpu: Fix amdgpu_ras_eeprom_init() (diff)
downloadkernel-803c6ebdd32808834556b20548df9a1d079e4f24.tar.gz
kernel-803c6ebdd32808834556b20548df9a1d079e4f24.zip
drm/amdgpu: Simplify RAS EEPROM checksum calculations
Rename update_table_header() to write_table_header() as this function is actually writing it to EEPROM. Use kernel types; use u8 to carry around the checksum, in order to take advantage of arithmetic modulo 8-bits (256). Tidy up to 80 columns. When updating the checksum, just recalculate the whole thing. Cc: Alexander Deucher <[email protected]> Cc: Andrey Grodzovsky <[email protected]> Signed-off-by: Luben Tuikov <[email protected]> Acked-by: Alexander Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions