Re: [PATCH 3/3] drm/amd/display: Use seq_putc() in three functions

From: Alex Deucher

Date: Mon Jun 15 2026 - 13:58:38 EST


Applied patches 2 and 3. Thanks!

Alex

On Fri, Jun 5, 2026 at 8:09 AM Markus Elfring <Markus.Elfring@xxxxxx> wrote:
>
> From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
> Date: Fri, 5 Jun 2026 12:44:01 +0200
>
> Single characters should occasionally be put into a sequence.
> Thus use the corresponding function “seq_putc”.
>
> The source code was transformed by using the Coccinelle software.
>
> Signed-off-by: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
> ---
> drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
> index 885e9b7bc27a..e45fa6e97fc6 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
> @@ -606,7 +606,7 @@ static int dp_lttpr_status_show(struct seq_file *m, void *unused)
> break;
> }
>
> - seq_puts(m, "\n");
> + seq_putc(m, '\n');
> return 0;
> }
>
> @@ -1081,7 +1081,7 @@ static int psr_capability_show(struct seq_file *m, void *data)
> str_yes_no(link->psr_settings.psr_feature_enabled));
> if (link->psr_settings.psr_version)
> seq_printf(m, " [0x%02x]", link->psr_settings.psr_version);
> - seq_puts(m, "\n");
> + seq_putc(m, '\n');
>
> return 0;
> }
> @@ -1266,7 +1266,7 @@ static int hdcp_sink_capability_show(struct seq_file *m, void *data)
> if (!hdcp_cap && !hdcp2_cap)
> seq_printf(m, "%s ", "None");
>
> - seq_puts(m, "\n");
> + seq_putc(m, '\n');
>
> return 0;
> }
> --
> 2.54.0
>