]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Use a single loop
authorLuben Tuikov <luben.tuikov@amd.com>
Fri, 4 Jun 2021 03:58:19 +0000 (23:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Jul 2021 04:25:33 +0000 (00:25 -0400)
commit04a46a538deccf952fd02fdb4c468afb83984529
tree92f2122cb42b480325039354919954ae4d4c9b5a
parent3c9eb6a92a4c4f047df4a3614cbd076b6784d7d1
drm/amdgpu: Use a single loop

In smu_v11_0_i2c_transmit() use a single loop to
transmit bytes, instead of two nested loops.

Cc: Alexander Deucher <Alexander.Deucher@amd.com>
Cc: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
Reviewed-by: Alexander Deucher <Alexander.Deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/smu_v11_0_i2c.c