Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

video: fbdev: omap2: omapfb: displays: panel-dsi-cm: Use time comparison kernel macro.

Use time_before_eq() kernel macro for time comparison.

Signed-off-by: Karim Eshapa <karim.eshapa@gmail.com>
Cc: tomi.valkeinen@ti.com
Cc: peter.ujfalusi@ti.com
Cc: tj@kernel.org
Cc: mingo@kernel.org
[b.zolnierkie: patch description fixup]
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>

authored by

Karim Eshapa and committed by
Bartlomiej Zolnierkiewicz
ac5b52d2 927f7a17

+1 -1
+1 -1
drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c
··· 100 100 { 101 101 unsigned long wait = ddata->hw_guard_end - jiffies; 102 102 103 - if ((long)wait > 0 && wait <= ddata->hw_guard_wait) { 103 + if ((long)wait > 0 && time_before_eq(wait, ddata->hw_guard_wait)) { 104 104 set_current_state(TASK_UNINTERRUPTIBLE); 105 105 schedule_timeout(wait); 106 106 }