summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMahesh Sivasubramanian <msivasub@codeaurora.org>2016-03-09 10:24:27 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:24:36 -0700
commit05cb6f52907bde05d5bd7bc10245715d3fbfbb80 (patch)
tree41ff9d8b934be05f708ddc0313e87dd983ab6e4c
parent56627ae589aaccc068b6e26e3767878adfb0b31f (diff)
power: soc: qcom: Fix sensor APIs signatures
The sensor APIs have changed from using long to int for temperatures. Update the variables types from long to int. Change-Id: Id183b83339ceaacb6d340cca138845dd5ac6fbdf Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
-rw-r--r--drivers/power/qcom/msm-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/qcom/msm-core.c b/drivers/power/qcom/msm-core.c
index 6198413e380f..daa842498d96 100644
--- a/drivers/power/qcom/msm-core.c
+++ b/drivers/power/qcom/msm-core.c
@@ -228,7 +228,7 @@ void trigger_cpu_pwr_stats_calc(void)
int cpu;
static long prev_temp[NR_CPUS];
struct cpu_activity_info *cpu_node;
- long temp;
+ int temp;
if (disabled)
return;
@@ -697,7 +697,7 @@ static int msm_core_tsens_init(struct device_node *node, int cpu)
struct device_node *phandle;
const char *sensor_type = NULL;
struct cpu_activity_info *cpu_node = &activity[cpu];
- long temp;
+ int temp;
if (!node)
return -ENODEV;