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

Bluetooth: hci_h5: 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
a1e0d043 6e5ffd0f

+1 -3
+1 -3
drivers/bluetooth/hci_h5.c
··· 204 204 205 205 h5_reset_rx(h5); 206 206 207 - init_timer(&h5->timer); 208 - h5->timer.function = h5_timed_event; 209 - h5->timer.data = (unsigned long)hu; 207 + setup_timer(&h5->timer, h5_timed_event, (unsigned long)hu); 210 208 211 209 h5->tx_win = H5_TX_WIN_MAX; 212 210