Skip to content

Commit

Permalink
Bluetooth: hci_qca: Use setup_timer Kernel API instead of init_timer
Browse files Browse the repository at this point in the history
Replace init_timer function with setup_timer reported by coccinelle

Signed-off-by: Prasanna Karthik <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
  • Loading branch information
Prasanna Karthik authored and holtmann committed Nov 27, 2016
1 parent a1e0d04 commit 1ae6d00
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions drivers/bluetooth/hci_qca.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,14 +438,11 @@ static int qca_open(struct hci_uart *hu)

hu->priv = qca;

init_timer(&qca->wake_retrans_timer);
qca->wake_retrans_timer.function = hci_ibs_wake_retrans_timeout;
qca->wake_retrans_timer.data = (u_long)hu;
setup_timer(&qca->wake_retrans_timer, hci_ibs_wake_retrans_timeout,
(u_long)hu);
qca->wake_retrans = IBS_WAKE_RETRANS_TIMEOUT_MS;

init_timer(&qca->tx_idle_timer);
qca->tx_idle_timer.function = hci_ibs_tx_idle_timeout;
qca->tx_idle_timer.data = (u_long)hu;
setup_timer(&qca->tx_idle_timer, hci_ibs_tx_idle_timeout, (u_long)hu);
qca->tx_idle_delay = IBS_TX_IDLE_TIMEOUT_MS;

BT_DBG("HCI_UART_QCA open, tx_idle_delay=%u, wake_retrans=%u",
Expand Down

0 comments on commit 1ae6d00

Please sign in to comment.