Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Srinivasan Shanmugam and committed by
Alex Deucher
88c4d4e9 30a97a21

+7 -7
+7 -7
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
··· 1075 1075 1076 1076 switch (dm_crtc_state->stream->output_color_space) { 1077 1077 case COLOR_SPACE_SRGB: 1078 - seq_printf(m, "sRGB"); 1078 + seq_puts(m, "sRGB"); 1079 1079 break; 1080 1080 case COLOR_SPACE_YCBCR601: 1081 1081 case COLOR_SPACE_YCBCR601_LIMITED: 1082 - seq_printf(m, "BT601_YCC"); 1082 + seq_puts(m, "BT601_YCC"); 1083 1083 break; 1084 1084 case COLOR_SPACE_YCBCR709: 1085 1085 case COLOR_SPACE_YCBCR709_LIMITED: 1086 - seq_printf(m, "BT709_YCC"); 1086 + seq_puts(m, "BT709_YCC"); 1087 1087 break; 1088 1088 case COLOR_SPACE_ADOBERGB: 1089 - seq_printf(m, "opRGB"); 1089 + seq_puts(m, "opRGB"); 1090 1090 break; 1091 1091 case COLOR_SPACE_2020_RGB_FULLRANGE: 1092 - seq_printf(m, "BT2020_RGB"); 1092 + seq_puts(m, "BT2020_RGB"); 1093 1093 break; 1094 1094 case COLOR_SPACE_2020_YCBCR: 1095 - seq_printf(m, "BT2020_YCC"); 1095 + seq_puts(m, "BT2020_YCC"); 1096 1096 break; 1097 1097 default: 1098 1098 goto unlock; ··· 3022 3022 seq_printf(m, "[%d] %d kHz\n", entry/2, link_rate_in_khz); 3023 3023 } 3024 3024 } else { 3025 - seq_printf(m, "ILR is not supported by this eDP panel.\n"); 3025 + seq_puts(m, "ILR is not supported by this eDP panel.\n"); 3026 3026 } 3027 3027 3028 3028 return 0;