thermal: fix intel PCH thermal driver mismerge

I didn't notice this when merging the thermal code from Zhang, but his
merge (commit 5a924a07f882: "Merge branches 'thermal-core' and
'thermal-intel' of .git into next") of the thermal-core and
thermal-intel branches was wrong.

In thermal-core, commit 17e8351a7739 ("thermal: consistently use int for
temperatures") converted the thermal layer to use "int" for
temperatures.

But in parallel, in the thermal-intel branch commit d0a12625d2ff
("thermal: Add Intel PCH thermal driver") added support for the intel
PCH thermal sensor using the old interfaces that used "unsigned long"
pointers.

This resulted in warnings like this:

drivers/thermal/intel_pch_thermal.c:184:14: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
.get_temp = pch_thermal_get_temp,
^
drivers/thermal/intel_pch_thermal.c:184:14: note: (near initialization for ‘tzd_ops.get_temp’)
drivers/thermal/intel_pch_thermal.c:186:19: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
.get_trip_temp = pch_get_trip_temp,
^
drivers/thermal/intel_pch_thermal.c:186:19: note: (near initialization for ‘tzd_ops.get_trip_temp’)

This fixes it.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Changed files
+4 -7
drivers
+4 -7
drivers/thermal/intel_pch_thermal.c
··· 117 117 return 0; 118 118 } 119 119 120 - static int pch_wpt_get_temp(struct pch_thermal_device *ptd, 121 - unsigned long *temp) 120 + static int pch_wpt_get_temp(struct pch_thermal_device *ptd, int *temp) 122 121 { 123 122 u8 wpt_temp; 124 123 ··· 131 132 132 133 struct pch_dev_ops { 133 134 int (*hw_init)(struct pch_thermal_device *ptd, int *nr_trips); 134 - int (*get_temp)(struct pch_thermal_device *ptd, unsigned long *temp); 135 + int (*get_temp)(struct pch_thermal_device *ptd, int *temp); 135 136 }; 136 137 137 138 ··· 141 142 .get_temp = pch_wpt_get_temp, 142 143 }; 143 144 144 - static int pch_thermal_get_temp(struct thermal_zone_device *tzd, 145 - unsigned long *temp) 145 + static int pch_thermal_get_temp(struct thermal_zone_device *tzd, int *temp) 146 146 { 147 147 struct pch_thermal_device *ptd = tzd->devdata; 148 148 ··· 163 165 return 0; 164 166 } 165 167 166 - static int pch_get_trip_temp(struct thermal_zone_device *tzd, int trip, 167 - unsigned long *temp) 168 + static int pch_get_trip_temp(struct thermal_zone_device *tzd, int trip, int *temp) 168 169 { 169 170 struct pch_thermal_device *ptd = tzd->devdata; 170 171