[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1506877538-15831-1-git-send-email-himanshujha199640@gmail.com>
Date: Sun, 1 Oct 2017 22:35:38 +0530
From: Himanshu Jha <himanshujha199640@...il.com>
To: paul.burton@...tec.com
Cc: miguel.ojeda.sandonis@...il.com, linux-kernel@...r.kernel.org,
Himanshu Jha <himanshujha199640@...il.com>
Subject: [PATCH] auxdisplay: img-ascii-lcd: Use setup_timer API
Use setup_timer API instead of structure assignment.
Signed-off-by: Himanshu Jha <himanshujha199640@...il.com>
---
drivers/auxdisplay/img-ascii-lcd.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/auxdisplay/img-ascii-lcd.c b/drivers/auxdisplay/img-ascii-lcd.c
index 25306fa..ea6875e 100644
--- a/drivers/auxdisplay/img-ascii-lcd.c
+++ b/drivers/auxdisplay/img-ascii-lcd.c
@@ -395,9 +395,7 @@ static int img_ascii_lcd_probe(struct platform_device *pdev)
ctx->scroll_rate = HZ / 2;
/* initialise a timer for scrolling the message */
- init_timer(&ctx->timer);
- ctx->timer.function = img_ascii_lcd_scroll;
- ctx->timer.data = (unsigned long)ctx;
+ setup_timer(&ctx->timer, img_ascii_lcd_scroll, (unsigned long)ctx);
platform_set_drvdata(pdev, ctx);
--
2.7.4
Powered by blists - more mailing lists