Commit cd48b97c authored by Bob Zhou's avatar Bob Zhou Committed by Alex Deucher
Browse files

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: default avatarBob Zhou <bob.zhou@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 8b2faf1a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment