linux-xiaomi-chiron/drivers/clk/ti
Jakob Koschel 560a3164c9 clk: ti: clkctrl: 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/
Signed-off-by: Jakob Koschel <jakobkoschel@gmail.com>
Link: https://lore.kernel.org/r/20220324071019.59483-1-jakobkoschel@gmail.com
Tested-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2022-05-20 20:40:58 -07:00
..
adpll.c
apll.c clk: ti: Update pll and clockdomain clocks to use ti_dt_clk_name() 2022-03-10 18:55:59 -08:00
autoidle.c clk: ti: Update component clocks to use ti_dt_clk_name() 2022-03-10 18:55:59 -08:00
clk-2xxx.c
clk-3xxx.c
clk-7xx.c clk: ti: Drop legacy compatibility clocks for dra7 2022-03-15 14:07:27 -07:00
clk-33xx.c clk: ti: Drop legacy compatibility clocks for am3 2022-03-15 14:07:27 -07:00
clk-43xx.c clk: ti: Drop legacy compatibility clocks for am4 2022-03-15 14:07:27 -07:00
clk-44xx.c
clk-54xx.c
clk-814x.c
clk-816x.c
clk-dra7-atl.c clk: ti: Update component clocks to use ti_dt_clk_name() 2022-03-10 18:55:59 -08:00
clk.c clk: ti: Add ti_dt_clk_name() helper to use clock-output-names 2022-03-10 18:55:59 -08:00
clkctrl.c clk: ti: clkctrl: replace usage of found with dedicated list iterator variable 2022-05-20 20:40:58 -07:00
clkt_dflt.c
clkt_dpll.c
clkt_iclk.c
clock.h clk: ti: Drop legacy compatibility clocks for am4 2022-03-15 14:07:27 -07:00
clockdomain.c clk: ti: Update pll and clockdomain clocks to use ti_dt_clk_name() 2022-03-10 18:55:59 -08:00
composite.c clk: ti: composite: Prefer kcalloc over open coded arithmetic 2022-05-20 20:40:07 -07:00
divider.c clk: ti: Update component clocks to use ti_dt_clk_name() 2022-03-10 18:55:59 -08:00
dpll.c clk: ti: Update pll and clockdomain clocks to use ti_dt_clk_name() 2022-03-10 18:55:59 -08:00
dpll3xxx.c
dpll44xx.c
fapll.c clk: ti: Update pll and clockdomain clocks to use ti_dt_clk_name() 2022-03-10 18:55:59 -08:00
fixed-factor.c clk: ti: Update component clocks to use ti_dt_clk_name() 2022-03-10 18:55:59 -08:00
gate.c clk: ti: Update component clocks to use ti_dt_clk_name() 2022-03-10 18:55:59 -08:00
interface.c clk: ti: Update component clocks to use ti_dt_clk_name() 2022-03-10 18:55:59 -08:00
Kconfig
Makefile clk: ti: Drop legacy compatibility clocks for dra7 2022-03-15 14:07:27 -07:00
mux.c clk: ti: Update component clocks to use ti_dt_clk_name() 2022-03-10 18:55:59 -08:00