thermal: rename device_thermal_e to hal_device_thermal_e 46/262046/1 accepted/tizen/6.5/unified/20211028.115607 accepted/tizen/unified/20210804.085730 submit/tizen/20210802.064402 submit/tizen_6.5/20211028.163201 tizen_6.5.m2_release
authorYoungjae Cho <y0.cho@samsung.com>
Mon, 2 Aug 2021 05:31:13 +0000 (14:31 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Mon, 2 Aug 2021 05:31:13 +0000 (14:31 +0900)
Change-Id: I1648e5aad2aafcacccf7827863f9f8b02aa84fb3
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
hw/thermal/thermal.c

index 65c2769..823b3ce 100644 (file)
@@ -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;