Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1633462 > unrolled thread

[PATCH] drivers:video:fbdev:omap:lcd_mipid.c: Use time comparison kernel macros

Started byKarim Eshapa <karim.eshapa@gmail.com>
First post2017-04-30 18:50 +0200
Last post2017-05-02 13:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] drivers:video:fbdev:omap:lcd_mipid.c: Use time comparison kernel macros Karim Eshapa <karim.eshapa@gmail.com> - 2017-04-30 18:50 +0200
    Re: [PATCH] drivers:video:fbdev:omap:lcd_mipid.c: Use time  comparison kernel macros Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> - 2017-05-02 13:40 +0200

#1633462 — [PATCH] drivers:video:fbdev:omap:lcd_mipid.c: Use time comparison kernel macros

FromKarim Eshapa <karim.eshapa@gmail.com>
Date2017-04-30 18:50 +0200
Subject[PATCH] drivers:video:fbdev:omap:lcd_mipid.c: Use time comparison kernel macros
Message-ID<tC0cN-5xx-7@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#1634355 — Re: [PATCH] drivers:video:fbdev:omap:lcd_mipid.c: Use time comparison kernel macros

FromBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Date2017-05-02 13:40 +0200
SubjectRe: [PATCH] drivers:video:fbdev:omap:lcd_mipid.c: Use time comparison kernel macros
Message-ID<tCEjT-67E-19@gated-at.bofh.it>
In reply to#1633462
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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web