summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorKarim Eshapa <karim.eshapa@gmail.com>2017-06-14 18:40:56 +0300
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2017-06-14 18:40:56 +0300
commitac5b52d2a2980fe34474e23037b02485c61538a3 (patch)
treefeaf9158f7a082e865961cfe36d1d99f472ff576 /drivers/video
parent927f7a17eb2ecc9b5a3b31a297f08f221b1f531c (diff)
downloadlinux-ac5b52d2a2980fe34474e23037b02485c61538a3.tar.xz
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>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c b/drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c
index fd2b372d0264..7f20bc267234 100644
--- a/drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c
+++ b/drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c
@@ -100,7 +100,7 @@ static void hw_guard_wait(struct panel_drv_data *ddata)
{
unsigned long wait = ddata->hw_guard_end - jiffies;
- if ((long)wait > 0 && wait <= ddata->hw_guard_wait) {
+ if ((long)wait > 0 && time_before_eq(wait, ddata->hw_guard_wait)) {
set_current_state(TASK_UNINTERRUPTIBLE);
schedule_timeout(wait);
}