linux-stable/drivers/iio/trigger
Jakob Koschel d958095b4a iio: sysfs-trigger: replace usage of found with dedicated list iterator variable
To move the list iterator variable into the list_for_each_entry_*()
macro in the future it should be avoided to use the list iterator
variable after the loop body.

To *never* use the list iterator variable after the loop it was
concluded to use a separate iterator variable instead of a
found boolean [1].

This removes the need to use a found variable and simply checking if
the variable was set, can determine if the break/goto was hit.

Link: https://lore.kernel.org/all/CAHk-=wgRr_D8CB-D9Kg-c=EHreAsk5SqXPwr9Y7k9sA6cWXJ6w@mail.gmail.com/ [1]
Signed-off-by: Jakob Koschel <jakobkoschel@gmail.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20220331230632.957634-3-jakobkoschel@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2022-04-04 09:11:25 +01:00
..
iio-trig-hrtimer.c iio: hrtimer-trigger: Fix potential integer overflow in iio_hrtimer_store_sampling_frequency 2021-04-07 08:36:39 +01:00
iio-trig-interrupt.c iio: interrupt-trigger: Remove no-op trigger ops 2021-11-17 17:51:35 +00:00
iio-trig-loop.c iio: set default trig->dev.parent 2021-03-25 19:13:50 +00:00
iio-trig-sysfs.c iio: sysfs-trigger: replace usage of found with dedicated list iterator variable 2022-04-04 09:11:25 +01:00
Kconfig iio: trigger: stm32-timer: Make use of device properties 2022-02-18 11:35:49 +00:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
stm32-lptimer-trigger.c iio: stm32: Adopt SPDX identifier 2018-01-08 16:03:41 +01:00
stm32-timer-trigger.c iio:adc:stm32*: Use pm[_sleep]_ptr() etc to avoid need to make pm __maybe_unused 2022-02-21 19:33:04 +00:00