linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Bluetooth: hci_h5: Use setup_timer Kernel API instead of init_timer
@ 2016-10-18 17:30 Prasanna Karthik
  2016-10-18 17:55 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: Prasanna Karthik @ 2016-10-18 17:30 UTC (permalink / raw)
  To: Marcel Holtmann, Gustavo Padovan, Johan Hedberg
  Cc: linux-bluetooth@vger.kernel.org

Replace init_timer function with setup_timer reported by coccinelle

Signed-off-by: Prasanna Karthik <pkarthik@intrinsyc.com>
---
 drivers/bluetooth/hci_h5.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/bluetooth/hci_h5.c b/drivers/bluetooth/hci_h5.c
index 0879d64..90d0456 100644
--- a/drivers/bluetooth/hci_h5.c
+++ b/drivers/bluetooth/hci_h5.c
@@ -204,9 +204,7 @@ static int h5_open(struct hci_uart *hu)
=20
 	h5_reset_rx(h5);
=20
-	init_timer(&h5->timer);
-	h5->timer.function =3D h5_timed_event;
-	h5->timer.data =3D (unsigned long)hu;
+	setup_timer(&h5->timer, h5_timed_event, (unsigned long)hu);
=20
 	h5->tx_win =3D H5_TX_WIN_MAX;
=20
--=20
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Bluetooth: hci_h5: Use setup_timer Kernel API instead of init_timer
  2016-10-18 17:30 [PATCH] Bluetooth: hci_h5: Use setup_timer Kernel API instead of init_timer Prasanna Karthik
@ 2016-10-18 17:55 ` Marcel Holtmann
  0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2016-10-18 17:55 UTC (permalink / raw)
  To: Prasanna Karthik
  Cc: Gustavo F. Padovan, Johan Hedberg,
	linux-bluetooth@vger.kernel.org

Hi Prasanna,

> Replace init_timer function with setup_timer reported by coccinelle
> 
> Signed-off-by: Prasanna Karthik <pkarthik@intrinsyc.com>
> ---
> drivers/bluetooth/hci_h5.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-10-18 17:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-18 17:30 [PATCH] Bluetooth: hci_h5: Use setup_timer Kernel API instead of init_timer Prasanna Karthik
2016-10-18 17:55 ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).