mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
Bluetooth: Use AUTO_OFF constant in jiffies
Move AUTO_OFF_TIMEOUT to other constants changing name to HCI_AUTO_OFF_TIMEOUT and convert to jiffies. Signed-off-by: Andrei Emeltchenko <[email protected]> Signed-off-by: Gustavo Padovan <[email protected]>
This commit is contained in:
parent
33cef264cd
commit
9345d40c58
2 changed files with 3 additions and 5 deletions
|
|
@ -33,8 +33,6 @@
|
|||
#include <net/bluetooth/bluetooth.h>
|
||||
#include <net/bluetooth/hci_core.h>
|
||||
|
||||
#define AUTO_OFF_TIMEOUT 2000
|
||||
|
||||
static void hci_rx_work(struct work_struct *work);
|
||||
static void hci_cmd_work(struct work_struct *work);
|
||||
static void hci_tx_work(struct work_struct *work);
|
||||
|
|
@ -1083,8 +1081,7 @@ static void hci_power_on(struct work_struct *work)
|
|||
return;
|
||||
|
||||
if (test_bit(HCI_AUTO_OFF, &hdev->dev_flags))
|
||||
schedule_delayed_work(&hdev->power_off,
|
||||
msecs_to_jiffies(AUTO_OFF_TIMEOUT));
|
||||
schedule_delayed_work(&hdev->power_off, HCI_AUTO_OFF_TIMEOUT);
|
||||
|
||||
if (test_and_clear_bit(HCI_SETUP, &hdev->dev_flags))
|
||||
mgmt_index_added(hdev);
|
||||
|
|
|
|||
Loading…
Reference in a new issue