[PATCH] usb: dwc2: Simplify data output in ep_show()

Markus Elfring posted 1 patch 2 days, 12 hours ago
drivers/usb/dwc2/debugfs.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
[PATCH] usb: dwc2: Simplify data output in ep_show()
Posted by Markus Elfring 2 days, 12 hours ago
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Fri, 5 Jun 2026 17:52:15 +0200

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

The source code was transformed by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 drivers/usb/dwc2/debugfs.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/usb/dwc2/debugfs.c b/drivers/usb/dwc2/debugfs.c
index 3116ac72747f..8fe873cf4af2 100644
--- a/drivers/usb/dwc2/debugfs.c
+++ b/drivers/usb/dwc2/debugfs.c
@@ -252,8 +252,7 @@ static int ep_show(struct seq_file *seq, void *v)
 		   dwc2_readl(hsotg, DIEPTSIZ(index)),
 		   dwc2_readl(hsotg, DOEPTSIZ(index)));
 
-	seq_puts(seq, "\n");
-	seq_printf(seq, "mps %d\n", ep->ep.maxpacket);
+	seq_printf(seq, "\nmps %d\n", ep->ep.maxpacket);
 	seq_printf(seq, "total_data=%ld\n", ep->total_data);
 
 	seq_printf(seq, "request list (%p,%p):\n",
-- 
2.54.0