Commit 88c4d4e9 authored by Srinivasan Shanmugam's avatar Srinivasan Shanmugam Committed by Alex Deucher

drm/amd/display: Use seq_puts() in 'amdgpu_current_colorspace_show()' & 'edp_ilr_show()'

Replace seq_printf with seq_puts when there is no argument list.

Fix the checkpatch warning:
WARNING: Prefer seq_puts to seq_printf

Cc: Wayne Lin <Wayne.Lin@amd.com>
Cc: Harry Wentland <harry.wentland@amd.com>
Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: default avatarSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 30a97a21
...@@ -1075,24 +1075,24 @@ static int amdgpu_current_colorspace_show(struct seq_file *m, void *data) ...@@ -1075,24 +1075,24 @@ static int amdgpu_current_colorspace_show(struct seq_file *m, void *data)
switch (dm_crtc_state->stream->output_color_space) { switch (dm_crtc_state->stream->output_color_space) {
case COLOR_SPACE_SRGB: case COLOR_SPACE_SRGB:
seq_printf(m, "sRGB"); seq_puts(m, "sRGB");
break; break;
case COLOR_SPACE_YCBCR601: case COLOR_SPACE_YCBCR601:
case COLOR_SPACE_YCBCR601_LIMITED: case COLOR_SPACE_YCBCR601_LIMITED:
seq_printf(m, "BT601_YCC"); seq_puts(m, "BT601_YCC");
break; break;
case COLOR_SPACE_YCBCR709: case COLOR_SPACE_YCBCR709:
case COLOR_SPACE_YCBCR709_LIMITED: case COLOR_SPACE_YCBCR709_LIMITED:
seq_printf(m, "BT709_YCC"); seq_puts(m, "BT709_YCC");
break; break;
case COLOR_SPACE_ADOBERGB: case COLOR_SPACE_ADOBERGB:
seq_printf(m, "opRGB"); seq_puts(m, "opRGB");
break; break;
case COLOR_SPACE_2020_RGB_FULLRANGE: case COLOR_SPACE_2020_RGB_FULLRANGE:
seq_printf(m, "BT2020_RGB"); seq_puts(m, "BT2020_RGB");
break; break;
case COLOR_SPACE_2020_YCBCR: case COLOR_SPACE_2020_YCBCR:
seq_printf(m, "BT2020_YCC"); seq_puts(m, "BT2020_YCC");
break; break;
default: default:
goto unlock; goto unlock;
...@@ -3022,7 +3022,7 @@ static int edp_ilr_show(struct seq_file *m, void *unused) ...@@ -3022,7 +3022,7 @@ static int edp_ilr_show(struct seq_file *m, void *unused)
seq_printf(m, "[%d] %d kHz\n", entry/2, link_rate_in_khz); seq_printf(m, "[%d] %d kHz\n", entry/2, link_rate_in_khz);
} }
} else { } else {
seq_printf(m, "ILR is not supported by this eDP panel.\n"); seq_puts(m, "ILR is not supported by this eDP panel.\n");
} }
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment