From: Markus Elfring <[email protected]>
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 <[email protected]>
---
 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

Reply via email to