mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] usb: dwc3: am62: Use HZ_PER_KHZ
@ 2025-02-17 14:45 Sascha Hauer
  2025-02-17 14:45 ` [PATCH 2/2] usb: dwc3: am62: set mode valid bit before probing children Sascha Hauer
  2025-02-18 14:05 ` [PATCH 1/2] usb: dwc3: am62: Use HZ_PER_KHZ Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Sascha Hauer @ 2025-02-17 14:45 UTC (permalink / raw)
  To: Barebox List

Use HZ_PER_KHZ to make intention clear and drop now unnecessary comment.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 drivers/usb/dwc3/dwc3-am62.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/dwc3/dwc3-am62.c b/drivers/usb/dwc3/dwc3-am62.c
index fd7f5e54d2..7dac8981fb 100644
--- a/drivers/usb/dwc3/dwc3-am62.c
+++ b/drivers/usb/dwc3/dwc3-am62.c
@@ -203,7 +203,7 @@ static int dwc3_ti_probe(struct device *dev)
 
 	/* Calculate the rate code */
 	rate = clk_get_rate(am62->usb2_refclk);
-	rate /= 1000;	// To KHz
+	rate /= HZ_PER_KHZ;
 	for (i = 0; i < ARRAY_SIZE(dwc3_ti_rate_table); i++) {
 		if (dwc3_ti_rate_table[i] == rate)
 			break;
-- 
2.39.5




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-02-18 14:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-17 14:45 [PATCH 1/2] usb: dwc3: am62: Use HZ_PER_KHZ Sascha Hauer
2025-02-17 14:45 ` [PATCH 2/2] usb: dwc3: am62: set mode valid bit before probing children Sascha Hauer
2025-02-18 14:05 ` [PATCH 1/2] usb: dwc3: am62: Use HZ_PER_KHZ Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox