diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2021-01-22 18:39:40 +0300 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2021-01-26 00:14:19 +0300 |
commit | e89b0a426721a8ca5971bc8d70aa5ea35c020f90 (patch) | |
tree | 574813360fd7cdf60df537c4f01847e1209a1caa /drivers/auxdisplay | |
parent | f12b457c6b25c530499438dffab4f2184e67e819 (diff) | |
download | 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.c | 3 |
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); } /* |