Skip to content

Commit e89b0a4

Browse files
geertuojeda
authored andcommitted
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: 8992da4 ("auxdisplay: ht16k33: Driver for LED controller") Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent f12b457 commit e89b0a4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/auxdisplay/ht16k33.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,7 @@ static void ht16k33_fb_queue(struct ht16k33_priv *priv)
117117
{
118118
struct ht16k33_fbdev *fbdev = &priv->fbdev;
119119

120-
schedule_delayed_work(&fbdev->work,
121-
msecs_to_jiffies(HZ / fbdev->refresh_rate));
120+
schedule_delayed_work(&fbdev->work, HZ / fbdev->refresh_rate);
122121
}
123122

124123
/*

0 commit comments

Comments
 (0)