mirror_ubuntu-kernels/drivers/gpu/drm/amd
Ville Syrjälä ff06184a49 drm/amdgpu/powerplay: Use swap() where appropriate
@swap@
identifier TEMP;
expression A,B;
@@
- TEMP = A;
- A = B;
- B = TEMP;
+ swap(A, B);

@@
type T;
identifier swap.TEMP;
@@
(
- T TEMP;
|
- T TEMP = {...};
)
... when != TEMP

Cc: Rex Zhu <rex.zhu@amd.com>
Cc: Evan Quan <evan.quan@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: "Christian König" <christian.koenig@amd.com>
Cc: "David (ChunMing) Zhou" <David1.Zhou@amd.com>
Cc: amd-gfx@lists.freedesktop.org
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-10-10 19:39:07 -05:00
..
acp treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
amdgpu drm/amdgpu: Do not implement power-on for SDMA after do mode2 reset on Renoir 2019-10-10 19:39:06 -05:00
amdkfd drm/amdkfd: update for drmP.h removal 2019-10-09 12:04:48 -05:00
display drm/amd/display: Use swap() where appropriate 2019-10-10 19:39:06 -05:00
include drm/amd/amdgpu: add IH cg support on soc15 project 2019-10-03 09:11:04 -05:00
powerplay drm/amdgpu/powerplay: Use swap() where appropriate 2019-10-10 19:39:07 -05:00