OSDN Git Service

drm/amd/display: Clean up errors & warnings in amdgpu_dm.c
authorSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Sat, 17 Jun 2023 15:39:46 +0000 (21:09 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Jul 2023 18:32:32 +0000 (14:32 -0400)
commit87279fdf5ee0ad1360765ef70389d1c4d0f81bb6
tree4d7e5c6f43619d0814c0d417de13293921e19355
parentb9c2213cdf254fba71b6bd602a0afe051e554ad9
drm/amd/display: Clean up errors & warnings in amdgpu_dm.c

Fix the following errors & warnings reported by checkpatch:

ERROR: space required before the open brace '{'
ERROR: space required before the open parenthesis '('
ERROR: that open brace { should be on the previous line
ERROR: space prohibited before that ',' (ctx:WxW)
ERROR: else should follow close brace '}'
ERROR: open brace '{' following function definitions go on the next line
ERROR: code indent should use tabs where possible

WARNING: braces {} are not necessary for single statement blocks
WARNING: void function return statements are not generally useful
WARNING: Block comments use * on subsequent lines
WARNING: Block comments use a trailing */ on a separate line

Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c