if (!dvfs)
return -EINVAL;
- if (!dvfs->get_curr_governor || !res_name)
+ if (!dvfs->get_curr_governor)
return -EINVAL;
return dvfs->get_curr_governor(res_name, governor);
if (!dvfs)
return -EINVAL;
- if (!dvfs->set_curr_governor || !res_name)
+ if (!dvfs->set_curr_governor)
return -EINVAL;
return dvfs->set_curr_governor(res_name, governor);
if (!dvfs)
return -EINVAL;
- if (!dvfs->get_curr_freq || !res_name)
+ if (!dvfs->get_curr_freq)
return -EINVAL;
return dvfs->get_curr_freq(res_name);
if (!dvfs)
return -EINVAL;
- if (!dvfs->get_min_freq || !res_name)
+ if (!dvfs->get_min_freq)
return -EINVAL;
return dvfs->get_min_freq(res_name);
if (!dvfs)
return -EINVAL;
- if (!dvfs->set_min_freq || !res_name)
+ if (!dvfs->set_min_freq)
return -EINVAL;
return dvfs->set_min_freq(res_name, freq);
if (!dvfs)
return -EINVAL;
- if (!dvfs->get_max_freq || !res_name)
+ if (!dvfs->get_max_freq)
return -EINVAL;
return dvfs->get_max_freq(res_name);
if (!dvfs)
return -EINVAL;
- if (!dvfs->set_max_freq || !res_name)
+ if (!dvfs->set_max_freq)
return -EINVAL;
return dvfs->set_max_freq(res_name, freq);
if (!dvfs)
return -EINVAL;
- if (!dvfs->get_available_min_freq || !res_name)
+ if (!dvfs->get_available_min_freq)
return -EINVAL;
return dvfs->get_available_min_freq(res_name);
if (!dvfs)
return -EINVAL;
- if (!dvfs->get_available_max_freq || !res_name)
+ if (!dvfs->get_available_max_freq)
return -EINVAL;
return dvfs->get_available_max_freq(res_name);
if (!dvfs)
return -EINVAL;
- if (!dvfs->get_up_threshold || !res_name)
+ if (!dvfs->get_up_threshold)
return -EINVAL;
return dvfs->get_up_threshold(res_name);
if (!dvfs)
return -EINVAL;
- if (!dvfs->set_up_threshold || !res_name)
+ if (!dvfs->set_up_threshold)
return -EINVAL;
return dvfs->set_up_threshold(res_name, up_threshold);
if (!hotplug)
return -EINVAL;
- if (!hotplug->get_online_state || !res_name)
+ if (!hotplug->get_online_state)
return -EINVAL;
return hotplug->get_online_state(res_name, cpu);
if (!hotplug)
return -EINVAL;
- if (!hotplug->set_online_state || !res_name)
+ if (!hotplug->set_online_state)
return -EINVAL;
return hotplug->set_online_state(res_name, cpu, on);
if (!hotplug)
return -EINVAL;
- if ((!hotplug->get_online_min_num) || (!res_name))
+ if (!hotplug->get_online_min_num)
return -EINVAL;
return hotplug->get_online_min_num(res_name);
if (!hotplug)
return -EINVAL;
- if ((!hotplug->set_online_min_num) || (!res_name))
+ if (!hotplug->set_online_min_num)
return -EINVAL;
return hotplug->set_online_min_num(res_name, num);
if (!hotplug)
return -EINVAL;
- if ((!hotplug->get_online_max_num) || (!res_name))
+ if (!hotplug->get_online_max_num)
return -EINVAL;
return hotplug->get_online_max_num(res_name);
if (!hotplug)
return -EINVAL;
- if ((!hotplug->set_online_max_num) || (!res_name))
+ if (!hotplug->set_online_max_num)
return -EINVAL;
return hotplug->set_online_max_num(res_name, num);
if (!tmu)
return -EINVAL;
- if (!tmu->get_temp || !res_thermal_name)
+ if (!tmu->get_temp)
return -EINVAL;
return tmu->get_temp(res_thermal_name);
if (!tmu)
return -EINVAL;
- if (!tmu->get_policy || !res_thermal_name)
+ if (!tmu->get_policy)
return -EINVAL;
return tmu->get_policy(res_thermal_name, policy);
return -EINVAL;
}
- if (!nonstandard->set_pmqos_data || !res_name || !data)
+ if (!nonstandard->set_pmqos_data || !data)
return -EINVAL;
return nonstandard->set_pmqos_data(res_name, data);