Commit a75517f
thermal: core: Introduce thermal_cooling_device_present()
Introduce a helper function, thermal_cooling_device_present(), for
checking if the given cooling device is in the list of registered
cooling devices to avoid some code duplication in a subsequent
patch.
No expected functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Zhang Rui <rui.zhang@intel.com>
Reviewed-by: Zhang Rui <rui.zhang@intel.com>
Acked-by: Nathan Hartman <nhartman@nvidia.com>
Acked-by: Jamie Nguyen <jamien@nvidia.com>1 parent 5e019b4 commit a75517f
1 file changed
Lines changed: 15 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1052 | 1052 | | |
1053 | 1053 | | |
1054 | 1054 | | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
1055 | 1067 | | |
1056 | 1068 | | |
1057 | 1069 | | |
| |||
1074 | 1086 | | |
1075 | 1087 | | |
1076 | 1088 | | |
1077 | | - | |
1078 | 1089 | | |
1079 | 1090 | | |
1080 | 1091 | | |
1081 | 1092 | | |
1082 | 1093 | | |
1083 | | - | |
1084 | | - | |
1085 | | - | |
1086 | | - | |
1087 | | - | |
| 1094 | + | |
| 1095 | + | |
1088 | 1096 | | |
1089 | 1097 | | |
1090 | 1098 | | |
| 1099 | + | |
1091 | 1100 | | |
1092 | 1101 | | |
1093 | 1102 | | |
| |||
0 commit comments