diff options
author | 2024-04-24 15:24:05 +0800 | |
---|---|---|
committer | 2024-04-26 17:22:43 -0400 | |
commit | cd48b97ce7787cf271f56ed4ea2037e1680cb29a (patch) | |
tree | 37812c09f072ce73955aa955f4144d5b041909a4 /drivers/gpu/drm/amd/amdgpu/atom.c | |
parent | drm/amdgpu: add error handle to avoid out-of-bounds (diff) | |
download | wireguard-linux-cd48b97ce7787cf271f56ed4ea2037e1680cb29a.tar.xz wireguard-linux-cd48b97ce7787cf271f56ed4ea2037e1680cb29a.zip |
drm/amdgpu: add return result for amdgpu_i2c_{get/put}_byte
After amdgpu_i2c_get_byte fail, amdgpu_i2c_put_byte shouldn't be
conducted to put wrong value.
So return and check the i2c transfer result.
Signed-off-by: Bob Zhou <bob.zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/atom.c')
0 files changed, 0 insertions, 0 deletions