temperature = temperature / 1000;
for (volt_index = 0; volt_index <= cpufreq_cdev->var_volt_size; volt_index++) {
- if (voltage < cpufreq_cdev->var_table[volt_index * (cpufreq_cdev->var_temp_size + 1)]) {
+ if (voltage < cpufreq_cdev->var_table[volt_index * ((int)cpufreq_cdev->var_temp_size + 1)]) {
volt_index = volt_index - 1;
break;
}
temperature = temperature / 1000;
for (volt_index = 0; volt_index <= gpufreq_cdev->var_volt_size; volt_index++) {
- if (voltage < gpufreq_cdev->var_table[volt_index * (gpufreq_cdev->var_temp_size + 1)]) {
+ if (voltage < gpufreq_cdev->var_table[volt_index * ((int)gpufreq_cdev->var_temp_size + 1)]) {
volt_index = volt_index - 1;
break;
}
gpu_freq_table[count].flags = 0;
gpu_freq_table[count].driver_data = count;
- gpu_freq_table[count].frequency = freq * 1000;
+ gpu_freq_table[count].frequency = (unsigned int)freq * 1000;
pr_info("[GPU cooling] index : %d, frequency : %d\n",
gpu_freq_table[count].driver_data, gpu_freq_table[count].frequency);
if (isp_device->isp_state == cooling_state)
return 0;
- isp_device->isp_state = cooling_state;
+ isp_device->isp_state = (unsigned int)cooling_state;
blocking_notifier_call_chain(&isp_notifier, ISP_THROTTLING, &cooling_state);
s64 i_next = i + mul_frac(tz->tzp->k_i, err);
s64 i_windup = int_to_frac(-1 * (s64)tz->tzp->sustainable_power);
- if (i_next > int_to_frac(tz->tzp->integral_max)) {
- i = int_to_frac(tz->tzp->integral_max);
+ if (i_next > int_to_frac((s64)tz->tzp->integral_max)) {
+ i = int_to_frac((s64)tz->tzp->integral_max);
params->err_integral = div_frac(i, tz->tzp->k_i);
} else if (i_next <= i_windup) {
i = i_windup;
static void reset_pid_controller(struct power_allocator_params *params, struct thermal_zone_device *tz)
{
- s64 i = int_to_frac(tz->tzp->integral_max);
+ s64 i = int_to_frac((s64)tz->tzp->integral_max);
params->err_integral = div_frac(i, tz->tzp->k_i);
params->prev_err = 0;
struct exynos_tmu_data *data = platform_get_drvdata(pdev);
struct exynos_tmu_platform_data *pdata;
struct resource res;
- int i;
+ unsigned int i;
const char *temp, *tmu_name;
if (!data || !pdev->dev.of_node)
else {
for (i = 0; i<ARRAY_SIZE(sensing_method); i++)
if (!strcasecmp(temp, sensing_method[i]))
- data->sensing_mode = i;
+ data->sensing_mode = (int)i;
}
data->balance_offset = DEFAULT_BALANCE_OFFSET;