drm/amd/display: Use seq_puts() in 'amdgpu_current_colorspace_show()' & 'edp_ilr_show()'
authorSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Wed, 21 Jun 2023 18:10:51 +0000 (23:40 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Jul 2023 17:39:02 +0000 (13:39 -0400)
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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c

index d63ee636483b86a1b6691d15766cd28a9b376a48..7c21e21bcc51a0e77d5cf18dd0c15dd90239214b 100644 (file)
@@ -1075,24 +1075,24 @@ static int amdgpu_current_colorspace_show(struct seq_file *m, void *data)
 
        switch (dm_crtc_state->stream->output_color_space) {
        case COLOR_SPACE_SRGB:
-               seq_printf(m, "sRGB");
+               seq_puts(m, "sRGB");
                break;
        case COLOR_SPACE_YCBCR601:
        case COLOR_SPACE_YCBCR601_LIMITED:
-               seq_printf(m, "BT601_YCC");
+               seq_puts(m, "BT601_YCC");
                break;
        case COLOR_SPACE_YCBCR709:
        case COLOR_SPACE_YCBCR709_LIMITED:
-               seq_printf(m, "BT709_YCC");
+               seq_puts(m, "BT709_YCC");
                break;
        case COLOR_SPACE_ADOBERGB:
-               seq_printf(m, "opRGB");
+               seq_puts(m, "opRGB");
                break;
        case COLOR_SPACE_2020_RGB_FULLRANGE:
-               seq_printf(m, "BT2020_RGB");
+               seq_puts(m, "BT2020_RGB");
                break;
        case COLOR_SPACE_2020_YCBCR:
-               seq_printf(m, "BT2020_YCC");
+               seq_puts(m, "BT2020_YCC");
                break;
        default:
                goto unlock;
@@ -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);
                }
        } 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;