aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/ptm/psm.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-06-02 15:29:09 -0700
committerGitHub <noreply@github.com>2021-06-02 15:29:09 -0700
commit4ea171fa5e50723d50b57b26aaaca2fac30eea57 (patch)
treeef2f0869252f59b0b8aeb62a48e2a233c0f94664 /src/core/hle/service/ptm/psm.cpp
parentd6006e9a3f0ea2b9fca17174542b5aba131dd294 (diff)
parenta0e4c2e1fc8d3ce33948a0ec6a840960f1ceb484 (diff)
Merge pull request #6308 from Morph1984/result
general: Replace RESULT_NAME with ResultName
Diffstat (limited to 'src/core/hle/service/ptm/psm.cpp')
-rw-r--r--src/core/hle/service/ptm/psm.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/hle/service/ptm/psm.cpp b/src/core/hle/service/ptm/psm.cpp
index bb7af9217..d9897c5c5 100644
--- a/src/core/hle/service/ptm/psm.cpp
+++ b/src/core/hle/service/ptm/psm.cpp
@@ -64,7 +64,7 @@ private:
should_signal = true;
IPC::ResponseBuilder rb{ctx, 2, 1};
- rb.Push(RESULT_SUCCESS);
+ rb.Push(ResultSuccess);
rb.PushCopyObjects(state_change_event.GetReadableEvent());
}
@@ -74,7 +74,7 @@ private:
should_signal = false;
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(RESULT_SUCCESS);
+ rb.Push(ResultSuccess);
}
void SetChargerTypeChangeEventEnabled(Kernel::HLERequestContext& ctx) {
@@ -85,7 +85,7 @@ private:
should_signal_charger_type = state;
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(RESULT_SUCCESS);
+ rb.Push(ResultSuccess);
}
void SetPowerSupplyChangeEventEnabled(Kernel::HLERequestContext& ctx) {
@@ -96,7 +96,7 @@ private:
should_signal_power_supply = state;
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(RESULT_SUCCESS);
+ rb.Push(ResultSuccess);
}
void SetBatteryVoltageStateChangeEventEnabled(Kernel::HLERequestContext& ctx) {
@@ -107,7 +107,7 @@ private:
should_signal_battery_voltage = state;
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(RESULT_SUCCESS);
+ rb.Push(ResultSuccess);
}
bool should_signal_charger_type{};
@@ -154,7 +154,7 @@ private:
LOG_DEBUG(Service_PSM, "called");
IPC::ResponseBuilder rb{ctx, 3};
- rb.Push(RESULT_SUCCESS);
+ rb.Push(ResultSuccess);
rb.Push<u32>(battery_charge_percentage);
}
@@ -162,7 +162,7 @@ private:
LOG_DEBUG(Service_PSM, "called");
IPC::ResponseBuilder rb{ctx, 3};
- rb.Push(RESULT_SUCCESS);
+ rb.Push(ResultSuccess);
rb.PushEnum(charger_type);
}
@@ -170,7 +170,7 @@ private:
LOG_DEBUG(Service_PSM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
- rb.Push(RESULT_SUCCESS);
+ rb.Push(ResultSuccess);
rb.PushIpcInterface<IPsmSession>(system);
}