diff options
author | 2021-02-03 21:55:27 +0000 | |
---|---|---|
committer | 2021-02-04 10:20:49 +0100 | |
commit | 40e0447d6f8052e241a1082bd97f8f3e40ed499d (patch) | |
tree | 0904308eb3a9e94b227a15fb03ade9559e88dc98 /lib/test_bitmap.c | |
parent | platform/x86: ideapad-laptop: use for_each_set_bit() helper to simplify event processing (diff) | |
download | linux-dev-40e0447d6f8052e241a1082bd97f8f3e40ed499d.tar.xz linux-dev-40e0447d6f8052e241a1082bd97f8f3e40ed499d.zip |
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>
Diffstat (limited to 'lib/test_bitmap.c')
0 files changed, 0 insertions, 0 deletions