Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Bluetooth: hci_qca: Use setup_timer Kernel API instead of init_timer

Replace init_timer function with setup_timer reported by coccinelle

Signed-off-by: Prasanna Karthik <pkarthik@intrinsyc.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>

authored by

Prasanna Karthik and committed by
Marcel Holtmann
1ae6d00a a1e0d043

+3 -6
+3 -6
drivers/bluetooth/hci_qca.c
··· 438 438 439 439 hu->priv = qca; 440 440 441 - init_timer(&qca->wake_retrans_timer); 442 - qca->wake_retrans_timer.function = hci_ibs_wake_retrans_timeout; 443 - qca->wake_retrans_timer.data = (u_long)hu; 441 + setup_timer(&qca->wake_retrans_timer, hci_ibs_wake_retrans_timeout, 442 + (u_long)hu); 444 443 qca->wake_retrans = IBS_WAKE_RETRANS_TIMEOUT_MS; 445 444 446 - init_timer(&qca->tx_idle_timer); 447 - qca->tx_idle_timer.function = hci_ibs_tx_idle_timeout; 448 - qca->tx_idle_timer.data = (u_long)hu; 445 + setup_timer(&qca->tx_idle_timer, hci_ibs_tx_idle_timeout, (u_long)hu); 449 446 qca->tx_idle_delay = IBS_TX_IDLE_TIMEOUT_MS; 450 447 451 448 BT_DBG("HCI_UART_QCA open, tx_idle_delay=%u, wake_retrans=%u",