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];
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");
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;