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 10:26:30 +0100 |
| commit | 68b6d02b3774854e60e51ea41fae86906747c1f6 (patch) | |
| tree | d385e38a44a212f3677116e251c0e17feb8c672a /drivers/auxdisplay | |
| parent | 88b6e7267f9e97d29e5f987ecaddd414360f6a48 (diff) | |
| download | linux-68b6d02b3774854e60e51ea41fae86906747c1f6.tar.gz linux-68b6d02b3774854e60e51ea41fae86906747c1f6.tar.bz2 linux-68b6d02b3774854e60e51ea41fae86906747c1f6.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>
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 a2fcde582e2a..33b887b38906 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); } /* |
