aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorYuesong Li <liyuesong@vivo.com>2025-06-16 14:25:06 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-06-19 12:27:36 +0200
commit7bf742b071c7ad8cdaae74a79c6af63f6447dada (patch)
tree645336aeb9267a67c834054dd9674591cd411604
parentusb: ohci-at91: Use dynamic device name for OHCI HCD creation (diff)
downloadwireguard-linux-7bf742b071c7ad8cdaae74a79c6af63f6447dada.tar.xz
wireguard-linux-7bf742b071c7ad8cdaae74a79c6af63f6447dada.zip
usb: storage: reltek_cr: convert to use secs_to_jiffies
Since commit b35108a51cf7 ("jiffies: Define secs_to_jiffies()") has been introduced, we can use it to avoid scaling the time to msec Signed-off-by: Yuesong Li <liyuesong@vivo.com> Link: https://lore.kernel.org/r/20250616062506.1074376-1-liyuesong@vivo.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/storage/realtek_cr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/storage/realtek_cr.c b/drivers/usb/storage/realtek_cr.c
index c18dfa2ca034..7dea28c2b8ee 100644
--- a/drivers/usb/storage/realtek_cr.c
+++ b/drivers/usb/storage/realtek_cr.c
@@ -748,7 +748,7 @@ static void rts51x_modi_suspend_timer(struct rts51x_chip *chip)
usb_stor_dbg(us, "state:%d\n", rts51x_get_stat(chip));
- chip->timer_expires = jiffies + msecs_to_jiffies(1000*ss_delay);
+ chip->timer_expires = jiffies + secs_to_jiffies(ss_delay);
mod_timer(&chip->rts51x_suspend_timer, chip->timer_expires);
}