]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Update HCI timeouts constants to use msecs_to_jiffies
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Mon, 11 Jun 2012 08:13:07 +0000 (11:13 +0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Tue, 12 Jun 2012 03:07:05 +0000 (00:07 -0300)
commit7febdd4fb5cf616190a38a8cbba181c56584dfde
treec53a010ed567f5780b96f22637e32a40a2372f67
parent677f1330a9bdf090f3382d8a1303c0c0a9bbc20e
Bluetooth: Update HCI timeouts constants to use msecs_to_jiffies

The HCI constants are always used in form of jiffies. So just
include the conversion from msecs in the define itself. This has the
advantage of making the code where the timeout is used more readable
and avoiding unnecessary conversions.

The patch is similar to commit 2e479efd doing the same job for L2CAP

Reported-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
include/net/bluetooth/hci.h
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c