Skip to content

Commit

Permalink
fixup! Added hwmon/thermal driver for reporting core temperature. Tha…
Browse files Browse the repository at this point in the history
…nks Dorian
  • Loading branch information
popcornmix committed Dec 8, 2015
1 parent ac0f3d6 commit 906ab5c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/thermal/bcm2835-thermal.c
Expand Up @@ -18,7 +18,7 @@
#include <soc/bcm2835/raspberrypi-firmware.h>

static int bcm2835_thermal_get_property(struct thermal_zone_device *tz,
unsigned long *temp, u32 tag)
int *temp, u32 tag)
{
struct rpi_firmware *fw = tz->devdata;
struct {
Expand All @@ -36,21 +36,21 @@ static int bcm2835_thermal_get_property(struct thermal_zone_device *tz,
}

*temp = packet.val;
dev_dbg(&tz->device, "%stemp=%lu\n",
dev_dbg(&tz->device, "%stemp=%d\n",
tag == RPI_FIRMWARE_GET_MAX_TEMPERATURE ? "max" : "", *temp);

return 0;
}

static int bcm2835_thermal_get_temp(struct thermal_zone_device *tz,
unsigned long *temp)
int *temp)
{
return bcm2835_thermal_get_property(tz, temp,
RPI_FIRMWARE_GET_TEMPERATURE);
}

static int bcm2835_thermal_get_max_temp(struct thermal_zone_device *tz,
int trip, unsigned long *temp)
int trip, int *temp)
{
/*
* The maximum safe temperature of the SoC.
Expand Down

0 comments on commit 906ab5c

Please sign in to comment.