Skip to content

Commit

Permalink
Use pcvGetModuleId
Browse files Browse the repository at this point in the history
  • Loading branch information
p-sam committed Apr 25, 2019
1 parent 9037d4c commit 1d23b23
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions src/clocks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ PcvModule Clocks::GetPcvModule(ClockModule clockmodule) {
switch(clockmodule)
{
case ClockModule_CPU:
return PcvModule_Cpu;
return PcvModule_CpuBus;
case ClockModule_GPU:
return PcvModule_Gpu;
return PcvModule_GPU;
case ClockModule_MEM:
return PcvModule_Emc;
return PcvModule_EMC;
default:
ERROR_THROW("No such ClockModule: %u", clockmodule);
}
Expand All @@ -119,19 +119,11 @@ PcvModule Clocks::GetPcvModule(ClockModule clockmodule) {
}

PcvModuleId Clocks::GetPcvModuleId(ClockModule clockmodule) {
switch(clockmodule)
{
case ClockModule_CPU:
return PcvModuleId_CpuBus;
case ClockModule_GPU:
return PcvModuleId_GPU;
case ClockModule_MEM:
return PcvModuleId_EMC;
default:
ERROR_THROW("No such ClockModule: %u", clockmodule);
}
PcvModuleId pcvModuleId;
Result rc = pcvGetModuleId(&pcvModuleId, GetPcvModule(clockmodule));
ASSERT_RESULT_OK(rc, "pcvGetModuleId");

return (PcvModuleId)0;
return pcvModuleId;
}

std::uint32_t Clocks::ResetToStock() {
Expand Down

0 comments on commit 1d23b23

Please sign in to comment.