Commit 9557b43
leds: qcom-lpg: Simplify with scoped for each OF child loop
Use scoped for_each_available_child_of_node_scoped() when iterating over
device nodes to make code a bit simpler.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240816-cleanup-h-of-node-put-var-v1-17-1d0292802470@linaro.org
Signed-off-by: Lee Jones <lee@kernel.org>1 parent 122d57e commit 9557b43
1 file changed
+4
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1368 | 1368 | | |
1369 | 1369 | | |
1370 | 1370 | | |
1371 | | - | |
1372 | 1371 | | |
1373 | 1372 | | |
1374 | 1373 | | |
| |||
1399 | 1398 | | |
1400 | 1399 | | |
1401 | 1400 | | |
1402 | | - | |
| 1401 | + | |
1403 | 1402 | | |
1404 | | - | |
1405 | | - | |
| 1403 | + | |
1406 | 1404 | | |
1407 | | - | |
1408 | 1405 | | |
1409 | 1406 | | |
1410 | 1407 | | |
| |||
1600 | 1597 | | |
1601 | 1598 | | |
1602 | 1599 | | |
1603 | | - | |
1604 | 1600 | | |
1605 | 1601 | | |
1606 | 1602 | | |
| |||
1640 | 1636 | | |
1641 | 1637 | | |
1642 | 1638 | | |
1643 | | - | |
| 1639 | + | |
1644 | 1640 | | |
1645 | | - | |
1646 | | - | |
| 1641 | + | |
1647 | 1642 | | |
1648 | | - | |
1649 | 1643 | | |
1650 | 1644 | | |
1651 | 1645 | | |
| |||
0 commit comments