return (ret < 0) ? ret : 0;
}
-static struct pass_resource_dvfs_ops cpufreq_dvfs_ops = {
+static struct hal_power_resource_dvfs_ops cpufreq_dvfs_ops = {
.get_curr_governor = cpufreq_dvfs_get_curr_governor,
.set_curr_governor = cpufreq_dvfs_set_curr_governor,
.get_curr_freq = cpufreq_dvfs_get_curr_freq,
return 0;
}
-static struct pass_resource_hotplug_ops cpu_hotplus_ops = {
+static struct hal_power_resource_hotplug_ops cpu_hotplus_ops = {
.get_online_state = cpu_hotplug_get_online_state,
.set_online_state = cpu_hotplug_set_online_state,
};
return (ret < 0) ? ret : 0;
}
-static struct pass_resource_tmu_ops tmu_ops = {
+static struct hal_power_resource_tmu_ops tmu_ops = {
.get_temp = tmu_get_temp,
.get_policy = tmu_get_policy,
};
return (ret < 0) ? ret : (freq * 1000);
}
-static struct pass_resource_dvfs_ops bus_dvfs_ops = {
+static struct hal_power_resource_dvfs_ops bus_dvfs_ops = {
.get_curr_freq = bus_dvfs_get_curr_freq,
.get_min_freq = bus_dvfs_get_curr_freq,
.get_max_freq = bus_dvfs_get_curr_freq,
};
-static struct pass_resource_dvfs_ops gpu_dvfs_ops = {
+static struct hal_power_resource_dvfs_ops gpu_dvfs_ops = {
.get_curr_freq = gpu_dvfs_get_curr_freq,
.get_min_freq = gpu_dvfs_get_min_freq,
.get_max_freq = gpu_dvfs_get_max_freq,