]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
usb: storage: reltek_cr: convert to use secs_to_jiffies
authorYuesong Li <liyuesong@vivo.com>
Mon, 16 Jun 2025 06:25:06 +0000 (14:25 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2025 10:27:36 +0000 (12:27 +0200)
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>
drivers/usb/storage/realtek_cr.c

index c18dfa2ca034e746c328e12df4d6aa147f71b8cb..7dea28c2b8ee30b37cc69c8fd0d7e08d0d6012d0 100644 (file)
@@ -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);
 }