Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
event_data->pnew_power_state = state;
return 0;
}
- state = (struct pp_power_state *)((uint64_t)state + hwmgr->ps_size);
+ state = (struct pp_power_state *)((unsigned long)state + hwmgr->ps_size);
}
switch (event_data->requested_ui_label) {
int pem_task_uninitialize_thermal_controller(struct pp_eventmgr *eventmgr, struct pem_event_data *event_data)
{
return phm_stop_thermal_controller(eventmgr->hwmgr);
-}
\ No newline at end of file
+}
*state_id = state->id;
return 0;
}
- state = (struct pp_power_state *)((uint64_t)state + hwmgr->ps_size);
+ state = (struct pp_power_state *)((unsigned long)state + hwmgr->ps_size);
}
return -1;
}
*state_id = state->id;
return 0;
}
- state = (struct pp_power_state *)((uint64_t)state + hwmgr->ps_size);
+ state = (struct pp_power_state *)((unsigned long)state + hwmgr->ps_size);
}
return -1;
}
hwmgr->request_ps = state;
return 0;
}
- state = (struct pp_power_state *)((uint64_t)state + hwmgr->ps_size);
+ state = (struct pp_power_state *)((unsigned long)state + hwmgr->ps_size);
}
return -1;
}
if (state->classification.flags & PP_StateClassificationFlag_Uvd)
hwmgr->uvd_ps = state;
- state = (struct pp_power_state *)((uint64_t)state + size);
+ state = (struct pp_power_state *)((unsigned long)state + size);
}
return 0;