Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a1e0d043 authored by Prasanna Karthik's avatar Prasanna Karthik Committed by Marcel Holtmann
Browse files

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: default avatarPrasanna Karthik <pkarthik@intrinsyc.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 6e5ffd0f
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -204,9 +204,7 @@ static int h5_open(struct hci_uart *hu)

	h5_reset_rx(h5);

	init_timer(&h5->timer);
	h5->timer.function = h5_timed_event;
	h5->timer.data = (unsigned long)hu;
	setup_timer(&h5->timer, h5_timed_event, (unsigned long)hu);

	h5->tx_win = H5_TX_WIN_MAX;