The Linux Kernel Mailing List
 help / color / mirror / Atom feed
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 2/3] drm/amd/display: Simplify data output in ips_status_show()
Date: Fri, 5 Jun 2026 13:32:37 +0200	[thread overview]
Message-ID: <89f8663f-2a5c-4f1f-a534-0934195e7fc7@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:40:31 +0200

Move the specification for a line break from a seq_puts() call
to a previous seq_printf() call.

This issue was detected 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 | 3 +--
 1 file changed, 1 insertion(+), 2 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 6e6f391b640e..885e9b7bc27a 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
@@ -2705,11 +2705,10 @@ static int ips_status_show(struct seq_file *m, void *unused)
 		rcg_count = ips_fw->rcg_exit_count;
 		ips1_count = ips_fw->ips1_exit_count;
 		ips2_count = ips_fw->ips2_exit_count;
-		seq_printf(m, "exit counts: rcg=%u ips1=%u ips2=%u",
+		seq_printf(m, "exit counts: rcg=%u ips1=%u ips2=%u\n",
 			   rcg_count,
 			   ips1_count,
 			   ips2_count);
-		seq_puts(m, "\n");
 	}
 	return 0;
 }
-- 
2.54.0


  parent reply	other threads:[~2026-06-05 11:32 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 ` Markus Elfring [this message]
2026-06-05 11:33 ` [PATCH 3/3] drm/amd/display: Use seq_putc() in three functions Markus Elfring
2026-06-15 17:53   ` 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=89f8663f-2a5c-4f1f-a534-0934195e7fc7@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