]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: ideapad-laptop: use msecs_to_jiffies() helper instead of hand-crafted...
authorBarnabás Pőcze <pobrn@protonmail.com>
Wed, 3 Feb 2021 21:55:27 +0000 (21:55 +0000)
committerHans de Goede <hdegoede@redhat.com>
Thu, 4 Feb 2021 09:20:49 +0000 (10:20 +0100)
commita6828d1c4d0b3470598860b559aead8ceba81c0f
tree0904308eb3a9e94b227a15fb03ade9559e88dc98
parent1a611da32e1fd7a7bbd9e42ddccea0c900e79314
platform/x86: ideapad-laptop: use msecs_to_jiffies() helper instead of hand-crafted formula

The current code used a hand-crafted formula to convert milliseconds to
jiffies, replace it with the msecs_to_jiffies() function. Furthermore,
use a while loop instead of for loop for shorter lines and simplicity.

Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com>
Link: https://lore.kernel.org/r/20210203215403.290792-11-pobrn@protonmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/ideapad-laptop.c