Skip to contentSkip to conversation

auxdisplay: ht16k33: Fix refresh rate handling

PATCH Applied Geert Uytterhoeven 2 participants 2 messages Jan 22, 2021 – Jan 25, 2021

Subsystems (2)
lore
Share & tools
lore

Geert Uytterhoeven

author reviewer
#0 lore raw

PATCH 1/1 auxdisplay: ht16k33: Fix refresh rate handling

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")
---
 drivers/auxdisplay/ht16k33.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/auxdisplay/ht16k33.c +1 -2
index 444f3b1019e3d425..1e69cc6d21a0dca2 100644
@@ -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);
 }
 
 /*
Signature · 1 line
2.25.1
Applied
#1 lore raw
Quoted 3 lines · Geert Uytterhoeven

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