summaryrefslogtreecommitdiffstats
path: root/drivers/auxdisplay
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2021-01-22 16:39:40 +0100
committerMiguel Ojeda <ojeda@kernel.org>2021-01-25 22:14:19 +0100
commite89b0a426721a8ca5971bc8d70aa5ea35c020f90 (patch)
tree574813360fd7cdf60df537c4f01847e1209a1caa /drivers/auxdisplay
parentf12b457c6b25c530499438dffab4f2184e67e819 (diff)
downloadlinux-e89b0a426721a8ca5971bc8d70aa5ea35c020f90.tar.gz
linux-e89b0a426721a8ca5971bc8d70aa5ea35c020f90.tar.xz
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") Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'drivers/auxdisplay')
-rw-r--r--drivers/auxdisplay/ht16k33.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/auxdisplay/ht16k33.c b/drivers/auxdisplay/ht16k33.c
index 444f3b1019e3..1e69cc6d21a0 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);
}
/*