projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e5ffd0
)
Bluetooth: hci_h5: Use setup_timer Kernel API instead of init_timer
author
Prasanna Karthik
<pkarthik@intrinsyc.com>
Tue, 18 Oct 2016 17:30:10 +0000
(17:30 +0000)
committer
Marcel Holtmann
<marcel@holtmann.org>
Sun, 27 Nov 2016 06:41:05 +0000
(07:41 +0100)
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>
drivers/bluetooth/hci_h5.c
patch
|
blob
|
history
diff --git
a/drivers/bluetooth/hci_h5.c
b/drivers/bluetooth/hci_h5.c
index
0879d64
..
90d0456
100644
(file)
--- a/
drivers/bluetooth/hci_h5.c
+++ b/
drivers/bluetooth/hci_h5.c
@@
-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;