aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
diff options
context:
space:
mode:
authorLuben Tuikov <[email protected]>2021-08-24 15:01:32 +0000
committerAlex Deucher <[email protected]>2021-08-30 18:59:33 +0000
commita6a355a22f7a0efa6a11bc90b5161f394d51fe95 (patch)
tree40d3fb53af720f92593c9d669efe6eeb437d1408 /drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
parentdrm:dcn31: fix boolreturn.cocci warnings (diff)
downloadkernel-a6a355a22f7a0efa6a11bc90b5161f394d51fe95.tar.gz
kernel-a6a355a22f7a0efa6a11bc90b5161f394d51fe95.zip
drm/amdgpu: Fixes to returning VBIOS RAS EEPROM address
1) Generalize the function--if the user didn't set i2c_address, still return true/false to indicate whether VBIOS contains the RAS EEPROM address. This function shouldn't evaluate whether the user set the i2c_address pointer or not. 2) Don't touch the caller's i2c_address, unless you have to--this function shouldn't have side effects. 3) Correctly set the function comment as a kernel-doc comment. Cc: John Clements <[email protected]> Cc: Hawking Zhang <[email protected]> Cc: Alex Deucher <[email protected]> Signed-off-by: Luben Tuikov <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c')
0 files changed, 0 insertions, 0 deletions