* [PATCH] drivers:video:fbdev:omap:lcd_mipid.c: Use time comparison kernel macros
@ 2017-04-30 16:42 ` Karim Eshapa
2017-05-02 11:36 ` Bartlomiej Zolnierkiewicz
0 siblings, 1 reply; 2+ messages in thread
From: Karim Eshapa @ 2017-04-30 16:42 UTC (permalink / raw)
To: tomi.valkeinen
Cc: b.zolnierkie, linux-fbdev, linux-omap, linux-kernel, Karim Eshapa
Use time_before_eq time comparison defind kernel macro
that has safety check.
Signed-off-by: Karim Eshapa <karim.eshapa@gmail.com>
---
drivers/video/fbdev/omap/lcd_mipid.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/video/fbdev/omap/lcd_mipid.c b/drivers/video/fbdev/omap/lcd_mipid.c
index c81f150..df9e6eb 100644
--- a/drivers/video/fbdev/omap/lcd_mipid.c
+++ b/drivers/video/fbdev/omap/lcd_mipid.c
@@ -174,7 +174,7 @@ static void hw_guard_wait(struct mipid_device *md)
{
unsigned long wait = md->hw_guard_end - jiffies;
- if ((long)wait > 0 && wait <= md->hw_guard_wait) {
+ if ((long)wait > 0 && time_before_eq(wait, md->hw_guard_wait)) {
set_current_state(TASK_UNINTERRUPTIBLE);
schedule_timeout(wait);
}
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drivers:video:fbdev:omap:lcd_mipid.c: Use time comparison kernel macros
2017-04-30 16:42 ` [PATCH] drivers:video:fbdev:omap:lcd_mipid.c: Use time comparison kernel macros Karim Eshapa
@ 2017-05-02 11:36 ` Bartlomiej Zolnierkiewicz
0 siblings, 0 replies; 2+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2017-05-02 11:36 UTC (permalink / raw)
To: Karim Eshapa; +Cc: tomi.valkeinen, linux-fbdev, linux-omap, linux-kernel
On Sunday, April 30, 2017 06:42:43 PM Karim Eshapa wrote:
> Use time_before_eq time comparison defind kernel macro
> that has safety check.
>
> Signed-off-by: Karim Eshapa <karim.eshapa@gmail.com>
Patch queued for 4.12, thanks.
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-05-02 11:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CGME20170430164251epcas1p263435da7131c78ae26d3bd76f26f1da1@epcas1p2.samsung.com>
2017-04-30 16:42 ` [PATCH] drivers:video:fbdev:omap:lcd_mipid.c: Use time comparison kernel macros Karim Eshapa
2017-05-02 11:36 ` Bartlomiej Zolnierkiewicz
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).