diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2021-01-22 16:39:40 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-04 09:39:45 +0100 |
commit | 208c697db98bd1394cb02f25dc092217456ac882 (patch) | |
tree | 449cab5cb2495d1022abfdd757827b26201150e8 | |
parent | 8e51a6f8cf9c2a6e8e7b321a7fbccf6108b9e50c (diff) | |
download | linux-stable-208c697db98bd1394cb02f25dc092217456ac882.tar.gz linux-stable-208c697db98bd1394cb02f25dc092217456ac882.tar.bz2 linux-stable-208c697db98bd1394cb02f25dc092217456ac882.zip |
auxdisplay: ht16k33: Fix refresh rate handling
[ Upstream commit e89b0a426721a8ca5971bc8d70aa5ea35c020f90 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-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 21393ec3b9a4..194370ae37dd 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); } /* |