@@ -529,8 +529,7 @@ static void acpi_thermal_check(void *data)
529529
530530/* sys I/F for generic thermal sysfs support */
531531
532- static int thermal_get_temp (struct thermal_zone_device * thermal ,
533- unsigned long * temp )
532+ static int thermal_get_temp (struct thermal_zone_device * thermal , int * temp )
534533{
535534 struct acpi_thermal * tz = thermal -> devdata ;
536535 int result ;
@@ -637,7 +636,7 @@ static int thermal_get_trip_type(struct thermal_zone_device *thermal,
637636}
638637
639638static int thermal_get_trip_temp (struct thermal_zone_device * thermal ,
640- int trip , unsigned long * temp )
639+ int trip , int * temp )
641640{
642641 struct acpi_thermal * tz = thermal -> devdata ;
643642 int i ;
@@ -690,7 +689,8 @@ static int thermal_get_trip_temp(struct thermal_zone_device *thermal,
690689}
691690
692691static int thermal_get_crit_temp (struct thermal_zone_device * thermal ,
693- unsigned long * temperature ) {
692+ int * temperature )
693+ {
694694 struct acpi_thermal * tz = thermal -> devdata ;
695695
696696 if (tz -> trips .critical .flags .valid ) {
@@ -713,8 +713,8 @@ static int thermal_get_trend(struct thermal_zone_device *thermal,
713713 return - EINVAL ;
714714
715715 if (type == THERMAL_TRIP_ACTIVE ) {
716- unsigned long trip_temp ;
717- unsigned long temp = DECI_KELVIN_TO_MILLICELSIUS_WITH_OFFSET (
716+ int trip_temp ;
717+ int temp = DECI_KELVIN_TO_MILLICELSIUS_WITH_OFFSET (
718718 tz -> temperature , tz -> kelvin_offset );
719719 if (thermal_get_trip_temp (thermal , trip , & trip_temp ))
720720 return - EINVAL ;
0 commit comments