]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/amdgpu: Improve amdgpu_dpm* macros to avoid unexpected result (v2)
authorEric Huang <JinHuiEric.Huang@amd.com>
Tue, 19 Jan 2016 19:28:56 +0000 (14:28 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 22 Jan 2016 15:47:48 +0000 (10:47 -0500)
commitaa3d9f24189e4084615b72bb20be50b8d4644ed2
tree83730f6c82970371232e4e5f7d1f66bea9af60e8
parent3b39c09d3af452073c7677a4d295f1cd084e6a86
drm/amd/amdgpu: Improve amdgpu_dpm* macros to avoid unexpected result (v2)

The two macros returns are values which probably are used
in the expression of calculation. Without the brackets
the result of the expression may be wrong.

v2: agd: squash both patches together

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h