summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoungjae Cho <y0.cho@samsung.com>2021-08-02 14:32:27 +0900
committerYoungjae Cho <y0.cho@samsung.com>2021-08-02 14:32:27 +0900
commit1b919cdd18bb0f17ecb7db3a8db76a10ecdd7411 (patch)
treeaa4397031013694338347160f8acb66460c224f9
parente5555f018a4cfac3c09b851432883b20c1656479 (diff)
downloaddevice-tw3-1b919cdd18bb0f17ecb7db3a8db76a10ecdd7411.tar.gz
device-tw3-1b919cdd18bb0f17ecb7db3a8db76a10ecdd7411.tar.bz2
device-tw3-1b919cdd18bb0f17ecb7db3a8db76a10ecdd7411.zip
Change-Id: I88b4f8dd4a1c3fcb4f20d3a50e1bce329c7891ab Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
-rw-r--r--hw/thermal/thermal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/thermal/thermal.c b/hw/thermal/thermal.c
index 0daf0a7..65a4c87 100644
--- a/hw/thermal/thermal.c
+++ b/hw/thermal/thermal.c
@@ -38,7 +38,7 @@ static struct event_data {
static guint timer;
-static int thermal_get_info(device_thermal_e type, struct thermal_info *info)
+static int thermal_get_info(hal_device_thermal_e type, struct thermal_info *info)
{
FILE *fp;
char buf[32];
@@ -48,7 +48,7 @@ static int thermal_get_info(device_thermal_e type, struct thermal_info *info)
if (!info)
return -EINVAL;
- if (type == DEVICE_THERMAL_BATTERY)
+ if (type == HAL_DEVICE_THERMAL_BATTERY)
fp = fopen(BATTERY_PATH, "r");
else
fp = fopen(AP_PATH, "r");
@@ -90,7 +90,7 @@ static gboolean thermal_timeout(gpointer data)
struct thermal_info info;
int ret;
- ret = thermal_get_info(DEVICE_THERMAL_AP, &info);
+ ret = thermal_get_info(HAL_DEVICE_THERMAL_AP, &info);
if (ret < 0) {
_E("Failed to read thermal info (%d)", ret);
return G_SOURCE_CONTINUE;