HID: cp2112: Switch to for_each_set_bit() to simplify the code
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 3 Jul 2023 18:52:14 +0000 (21:52 +0300)
committerBenjamin Tissoires <bentiss@kernel.org>
Fri, 28 Jul 2023 15:05:47 +0000 (17:05 +0200)
commitecb42bb8035c9901684c40c87cf1ea23f62e055d
tree7dae7a49a5adb2358e6424f2fe46d0022c30ba6f
parent3e2977c425ad2789ca18084fff913cceacae75a2
HID: cp2112: Switch to for_each_set_bit() to simplify the code

It's cleaner to use for_each_set_bit() than open coding it.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230703185222.50554-5-andriy.shevchenko@linux.intel.com
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
drivers/hid/hid-cp2112.c