All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ACPI / APEI: use setup_deferrable_timer
@ 2017-03-11  0:46 Geliang Tang
  2017-03-11  0:46 ` [PATCH] ambassador: use setup_timer Geliang Tang
                   ` (8 more replies)
  0 siblings, 9 replies; 16+ messages in thread
From: Geliang Tang @ 2017-03-11  0:46 UTC (permalink / raw)
  To: Rafael J. Wysocki, Len Brown, Borislav Petkov
  Cc: Geliang Tang, linux-acpi, linux-kernel

Use setup_deferrable_timer() instead of init_timer_deferrable() to
simplify the code.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
---
 drivers/acpi/apei/ghes.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c
index b192b42..33ca196 100644
--- a/drivers/acpi/apei/ghes.c
+++ b/drivers/acpi/apei/ghes.c
@@ -1005,9 +1005,8 @@ static int ghes_probe(struct platform_device *ghes_dev)
 
 	switch (generic->notify.type) {
 	case ACPI_HEST_NOTIFY_POLLED:
-		ghes->timer.function = ghes_poll_func;
-		ghes->timer.data = (unsigned long)ghes;
-		init_timer_deferrable(&ghes->timer);
+		setup_deferrable_timer(&ghes->timer, ghes_poll_func,
+				       (unsigned long)ghes);
 		ghes_add_timer(ghes);
 		break;
 	case ACPI_HEST_NOTIFY_EXTERNAL:
-- 
2.9.3


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

end of thread, other threads:[~2017-04-19 10:12 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-11  0:46 [PATCH] ACPI / APEI: use setup_deferrable_timer Geliang Tang
2017-03-11  0:46 ` [PATCH] ambassador: use setup_timer Geliang Tang
2017-03-13  6:47   ` David Miller
2017-03-11  0:46 ` [PATCH] auxdisplay: " Geliang Tang
2017-03-13 17:27   ` Paul Burton
2017-03-11  0:46 ` [PATCH] Bluetooth: bluecard: " Geliang Tang
2017-03-27 14:11   ` Marcel Holtmann
2017-03-11  0:46 ` [PATCH] drop_monitor: " Geliang Tang
2017-03-13  6:47   ` David Miller
2017-03-11  0:47 ` [PATCH] fs/ocfs2/cluster: " Geliang Tang
2017-03-11  0:47 ` [PATCH] libata: use setup_deferrable_timer Geliang Tang
2017-03-13 17:07   ` Tejun Heo
2017-03-14 18:06 ` [PATCH] ACPI / APEI: " Baicar, Tyler
2017-04-18 14:41 ` Rafael J. Wysocki
2017-04-18 17:21   ` Borislav Petkov
2017-04-19 10:09 ` [tip:ras/core] ACPI/APEI: Use setup_deferrable_timer() tip-bot for Geliang Tang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.