drivers:video:fbdev:omap:lcd_mipid.c: Use time comparison kernel macros
Subsystems (2)
PATCH 1/1 drivers:video:fbdev:omap:lcd_mipid.c: Use time comparison kernel macros
Use time_before_eq time comparison defind kernel macro that has safety check.
Signed-off-by Karim Eshapa <[email protected]>
--- drivers/video/fbdev/omap/lcd_mipid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/omap/lcd_mipid.c +1 -1
@@ -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); }
Signature · 1 line
2.7.4
Quoted 4 lines · Karim Eshapa
Use
time_before_eqtime comparison defind kernel macro that has safety check.Signed-off-by Karim Eshapa <[email protected]>
Patch queued for 4.12, thanks.
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics