[PATCH 2/3] drm/amd/display: Simplify data output in ips_status_show()

From: Markus Elfring

Date: Fri Jun 05 2026 - 07:41:00 EST


From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxxxxxxxxxxx>
---
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