Commit 6d153f5
committed
thermal: core: Introduce thermal_instance_add()
To reduce the number of redundant result checks in
thermal_bind_cdev_to_trip() and make the code in it easier to
follow, move some of it to a new function called thermal_instance_add()
and make thermal_bind_cdev_to_trip() invoke that function.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <[email protected]>
Link: https://patch.msgid.link/[email protected]
Reviewed-by: Lukasz Luba <[email protected]>1 parent 33eab80 commit 6d153f5
1 file changed
+30
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
745 | 745 | | |
746 | 746 | | |
747 | 747 | | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
748 | 770 | | |
749 | 771 | | |
750 | 772 | | |
| |||
763 | 785 | | |
764 | 786 | | |
765 | 787 | | |
766 | | - | |
| 788 | + | |
767 | 789 | | |
768 | 790 | | |
769 | 791 | | |
| |||
825 | 847 | | |
826 | 848 | | |
827 | 849 | | |
828 | | - | |
829 | | - | |
830 | | - | |
831 | | - | |
832 | | - | |
833 | | - | |
834 | | - | |
835 | | - | |
836 | | - | |
837 | | - | |
838 | | - | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
839 | 853 | | |
840 | | - | |
841 | | - | |
842 | | - | |
843 | | - | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
844 | 857 | | |
| 858 | + | |
845 | 859 | | |
846 | 860 | | |
847 | 861 | | |
| |||
0 commit comments