[PATCH 1/2] usb: dwc3: am62: Use HZ_PER_KHZ
Sascha Hauer
s.hauer at pengutronix.de
Mon Feb 17 06:45:42 PST 2025
Use HZ_PER_KHZ to make intention clear and drop now unnecessary comment.
Signed-off-by: Sascha Hauer <s.hauer at 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
More information about the barebox
mailing list