]> git.baikalelectronics.ru Git - kernel.git/commit
iio: fix opencoded for_each_set_bit()
authorYury Norov <yury.norov@gmail.com>
Wed, 9 Feb 2022 18:28:16 +0000 (10:28 -0800)
committerYury Norov <yury.norov@gmail.com>
Mon, 2 May 2022 13:30:39 +0000 (06:30 -0700)
commit31f62bae6a4d22955b03097df84daca7d0cafcb4
treeb841e042e5ac71718d8283f76a01674fa5252040
parent2b9fd572e0fe0aeabff34ae8db2a7475082a99fe
iio: fix opencoded for_each_set_bit()

iio_simple_dummy_trigger_h() is mostly an opencoded for_each_set_bit().
Using for_each_set_bit() make code much cleaner, and more effective.

Signed-off-by: Yury Norov <yury.norov@gmail.com>
drivers/iio/dummy/iio_simple_dummy_buffer.c