ams: use R_SUCCEED, R_THROW globally
This commit is contained in:
@@ -76,7 +76,7 @@ namespace ams::gpio::server {
|
||||
|
||||
/* We succeeded. */
|
||||
*out = std::move(session);
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Result ManagerImpl::IsWakeEventActive2(ams::sf::Out<bool> out, DeviceCode device_code) {
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace ams::gpio::server {
|
||||
|
||||
R_TRY(gpio::driver::OpenSession(std::addressof(m_internal_pad_session), device_code, access_mode));
|
||||
m_has_session = true;
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
public:
|
||||
/* Actual commands. */
|
||||
@@ -54,7 +54,7 @@ namespace ams::gpio::server {
|
||||
/* Invoke the driver library. */
|
||||
R_TRY(gpio::driver::SetDirection(std::addressof(m_internal_pad_session), direction));
|
||||
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Result GetDirection(ams::sf::Out<gpio::Direction> out) {
|
||||
@@ -64,7 +64,7 @@ namespace ams::gpio::server {
|
||||
/* Invoke the driver library. */
|
||||
R_TRY(gpio::driver::GetDirection(out.GetPointer(), std::addressof(m_internal_pad_session)));
|
||||
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Result SetInterruptMode(gpio::InterruptMode mode) {
|
||||
@@ -130,7 +130,7 @@ namespace ams::gpio::server {
|
||||
/* Invoke the driver library. */
|
||||
R_TRY(gpio::driver::SetValue(std::addressof(m_internal_pad_session), value));
|
||||
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Result GetValue(ams::sf::Out<gpio::GpioValue> out) {
|
||||
@@ -140,7 +140,7 @@ namespace ams::gpio::server {
|
||||
/* Invoke the driver library. */
|
||||
R_TRY(gpio::driver::GetValue(out.GetPointer(), std::addressof(m_internal_pad_session)));
|
||||
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Result BindInterrupt(ams::sf::OutCopyHandle out) {
|
||||
|
||||
Reference in New Issue
Block a user