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)
commit5f246e890502fed387e0f959e2224ea680c03423
treec53a010ed567f5780b96f22637e32a40a2372f67
parent975b91bb17e70c0dc33ad07f16097106a9c2c6a2
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 ba13ccd9 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