Commit 84e2b97
leds: mt6323: 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-12-1d0292802470@linaro.org
Signed-off-by: Lee Jones <lee@kernel.org>1 parent e98a7f1 commit 84e2b97
1 file changed
Lines changed: 7 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
530 | | - | |
531 | 530 | | |
532 | 531 | | |
533 | 532 | | |
| |||
565 | 564 | | |
566 | 565 | | |
567 | 566 | | |
568 | | - | |
| 567 | + | |
569 | 568 | | |
570 | 569 | | |
571 | 570 | | |
572 | 571 | | |
573 | 572 | | |
574 | 573 | | |
575 | | - | |
| 574 | + | |
576 | 575 | | |
577 | 576 | | |
578 | 577 | | |
579 | 578 | | |
580 | 579 | | |
581 | | - | |
582 | | - | |
| 580 | + | |
583 | 581 | | |
584 | 582 | | |
585 | 583 | | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | | - | |
| 584 | + | |
| 585 | + | |
590 | 586 | | |
591 | 587 | | |
592 | 588 | | |
| |||
612 | 608 | | |
613 | 609 | | |
614 | 610 | | |
615 | | - | |
| 611 | + | |
616 | 612 | | |
617 | 613 | | |
618 | 614 | | |
| |||
621 | 617 | | |
622 | 618 | | |
623 | 619 | | |
624 | | - | |
| 620 | + | |
625 | 621 | | |
626 | 622 | | |
627 | 623 | | |
628 | 624 | | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | 625 | | |
634 | 626 | | |
635 | 627 | | |
| |||
0 commit comments