]> Gentwo Git Trees - linux/.git/commit
Bluetooth: hci_vhci: convert timeouts to secs_to_jiffies()
authorEaswar Hariharan <eahariha@linux.microsoft.com>
Wed, 19 Feb 2025 22:51:29 +0000 (22:51 +0000)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 21 Feb 2025 15:50:38 +0000 (10:50 -0500)
commit87e88601074eef714f6b82a712e5cd54779f2b6a
treec384083bf6e757976e83a37a1cd4259f899c6491
parent2a509818ec2d175a22c316badce0ebbb5f989fd0
Bluetooth: hci_vhci: convert timeouts to secs_to_jiffies()

Commit b35108a51cf7 ("jiffies: Define secs_to_jiffies()") introduced
secs_to_jiffies().  As the value here is a multiple of 1000, use
secs_to_jiffies() instead of msecs_to_jiffies to avoid the multiplication.

This is converted using scripts/coccinelle/misc/secs_to_jiffies.cocci with
the following Coccinelle rules:

@depends on patch@
expression E;
@@

-msecs_to_jiffies(E * 1000)
+secs_to_jiffies(E)

-msecs_to_jiffies(E * MSEC_PER_SEC)
+secs_to_jiffies(E)

Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/hci_vhci.c