From: Markus Elfring <Markus.Elfring@web.de>
To: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
"Alex Deucher" <alexander.deucher@amd.com>,
"Chenyu Chen" <chen-yu.chen@amd.com>,
"Christian König" <christian.koenig@amd.com>,
"David Airlie" <airlied@gmail.com>,
"Harry Wentland" <harry.wentland@amd.com>,
"Ivan Lipski" <ivan.lipski@amd.com>,
"Kees Cook" <kees@kernel.org>, "Leo Li" <sunpeng.li@amd.com>,
"Mario Limonciello" <mario.limonciello@amd.com>,
"Ray Wu" <ray.wu@amd.com>,
"Rodrigo Siqueira" <siqueira@igalia.com>,
"Rong Zhang" <i@rong.moe>, "Simona Vetter" <simona@ffwll.ch>,
"Timur Kristóf" <timur.kristof@gmail.com>,
"Tom Chung" <chiahsuan.chung@amd.com>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH 3/3] drm/amd/display: Use seq_putc() in three functions
Date: Fri, 5 Jun 2026 13:33:37 +0200 [thread overview]
Message-ID: <da65ea0b-81bd-4109-89cd-f4a5120edba0@web.de> (raw)
In-Reply-To: <e0689a10-9cd6-4d74-a276-99f8f01c83fa@web.de>
From: Markus Elfring <elfring@users.sourceforge.net>
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@users.sourceforge.net>
---
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
next prev parent reply other threads:[~2026-06-05 11:33 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-05 11:30 [PATCH 0/3] drm/amd/display: More efficient data output in four functions Markus Elfring
2026-06-05 11:31 ` [PATCH 1/3] drm/amd/display: Simplify data output in psr_capability_show() Markus Elfring
2026-06-15 17:49 ` Alex Deucher
2026-06-16 7:19 ` Markus Elfring
2026-06-16 18:51 ` Alex Deucher
2026-06-05 11:32 ` [PATCH 2/3] drm/amd/display: Simplify data output in ips_status_show() Markus Elfring
2026-06-05 11:33 ` Markus Elfring [this message]
2026-06-15 17:53 ` [PATCH 3/3] drm/amd/display: Use seq_putc() in three functions Alex Deucher
2026-06-13 11:05 ` [PATCH 0/3] drm/amd/display: More efficient data output in four functions Timur Kristóf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=da65ea0b-81bd-4109-89cd-f4a5120edba0@web.de \
--to=markus.elfring@web.de \
--cc=airlied@gmail.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=chen-yu.chen@amd.com \
--cc=chiahsuan.chung@amd.com \
--cc=christian.koenig@amd.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=harry.wentland@amd.com \
--cc=i@rong.moe \
--cc=ivan.lipski@amd.com \
--cc=kees@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mario.limonciello@amd.com \
--cc=ray.wu@amd.com \
--cc=simona@ffwll.ch \
--cc=siqueira@igalia.com \
--cc=sunpeng.li@amd.com \
--cc=timur.kristof@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox