diff options
author | 2021-02-03 21:55:21 +0000 | |
---|---|---|
committer | 2021-02-04 10:20:46 +0100 | |
commit | 0c4915b6ad823b2e6ae9d97f6da64f1612254d6e (patch) | |
tree | fda09f5482025ec87f516bb4e70c0bb5daa6cbc1 /lib/test_bitmap.c | |
parent | platform/x86: ideapad-laptop: use kobj_to_dev() (diff) | |
download | linux-dev-0c4915b6ad823b2e6ae9d97f6da64f1612254d6e.tar.xz linux-dev-0c4915b6ad823b2e6ae9d97f6da64f1612254d6e.zip |
platform/x86: ideapad-laptop: use for_each_set_bit() helper to simplify event processing
The current code used the combination of a for loop + test_bit,
which can be simplified using for_each_set_bit(), so utilize that.
Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20210203215403.290792-10-pobrn@protonmail.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'lib/test_bitmap.c')
0 files changed, 0 insertions, 0 deletions