Commit edcef66
pmdomain: rockchip: reduce indentation in rockchip_pd_power
Rework the logic, so that the function exits early when the
power domain state is already correct to reduce code indentation.
No functional change intended.
Reviewed-by: Heiko Stuebner <[email protected]>
Tested-by: Heiko Stuebner <[email protected]>
Tested-by: Adrian Larumbe <[email protected]> # On Rock 5B
Signed-off-by: Sebastian Reichel <[email protected]>
Link: https://lore.kernel.org/r/20250220-rk3588-gpu-pwr-domain-regulator-v6-4-a4f9c24e5b81@kernel.org
Signed-off-by: Ulf Hansson <[email protected]>1 parent 7ab6c93 commit edcef66
1 file changed
+25
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
592 | 592 | | |
593 | 593 | | |
594 | 594 | | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
| 595 | + | |
| 596 | + | |
601 | 597 | | |
602 | | - | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
603 | 603 | | |
604 | | - | |
605 | | - | |
| 604 | + | |
606 | 605 | | |
607 | | - | |
608 | | - | |
609 | | - | |
| 606 | + | |
| 607 | + | |
610 | 608 | | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
616 | 612 | | |
617 | | - | |
618 | | - | |
619 | | - | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
620 | 618 | | |
621 | | - | |
622 | | - | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
623 | 622 | | |
624 | | - | |
625 | | - | |
| 623 | + | |
626 | 624 | | |
627 | 625 | | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
628 | 629 | | |
629 | 630 | | |
630 | 631 | | |
| |||
0 commit comments