auxdisplay: ht16k33: Fix refresh rate handling
diff mbox series

Message ID 20210122153940.2874225-1-geert@linux-m68k.org
State Accepted
Commit e89b0a426721a8ca5971bc8d70aa5ea35c020f90
Headers show
Series
  • auxdisplay: ht16k33: Fix refresh rate handling
Related show

Commit Message

Geert Uytterhoeven Jan. 22, 2021, 3:39 p.m. UTC
Drop the call to msecs_to_jiffies(), as "HZ / fbdev->refresh_rate" is
already the number of jiffies to wait.

Fixes: 8992da44c6805d53 ("auxdisplay: ht16k33: Driver for LED controller")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 drivers/auxdisplay/ht16k33.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Miguel Ojeda Jan. 25, 2021, 9:21 p.m. UTC | #1
On Fri, Jan 22, 2021 at 4:39 PM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
>
> Drop the call to msecs_to_jiffies(), as "HZ / fbdev->refresh_rate" is
> already the number of jiffies to wait.

Applied to -next, thanks!

Cheers,
Miguel

Patch
diff mbox series

diff --git a/drivers/auxdisplay/ht16k33.c b/drivers/auxdisplay/ht16k33.c
index 444f3b1019e3d425..1e69cc6d21a0dca2 100644
--- a/drivers/auxdisplay/ht16k33.c
+++ b/drivers/auxdisplay/ht16k33.c
@@ -117,8 +117,7 @@  static void ht16k33_fb_queue(struct ht16k33_priv *priv)
 {
 	struct ht16k33_fbdev *fbdev = &priv->fbdev;
 
-	schedule_delayed_work(&fbdev->work,
-			      msecs_to_jiffies(HZ / fbdev->refresh_rate));
+	schedule_delayed_work(&fbdev->work, HZ / fbdev->refresh_rate);
 }
 
 /*