mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-06 11:22:15 +02:00
fix formatting
This commit is contained in:
parent
7f2c3f7d3c
commit
e51c787d84
@ -105,13 +105,11 @@ Result pcvGetClockRate(PcvModule module, u32 *out_hz) {
|
||||
return rc;
|
||||
}
|
||||
|
||||
Result pcvSetVoltageEnabled(bool state, u32 voltage)
|
||||
{
|
||||
Result pcvSetVoltageEnabled(bool state, u32 voltage) {
|
||||
IpcCommand c;
|
||||
ipcInitialize(&c);
|
||||
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
u64 magic;
|
||||
u64 cmd_id;
|
||||
bool state;
|
||||
@ -127,8 +125,7 @@ Result pcvSetVoltageEnabled(bool state, u32 voltage)
|
||||
|
||||
Result rc = serviceIpcDispatch(&g_pcvSrv);
|
||||
|
||||
if (R_SUCCEEDED(rc))
|
||||
{
|
||||
if (R_SUCCEEDED(rc)) {
|
||||
IpcParsedCommand r;
|
||||
struct {
|
||||
u64 magic;
|
||||
@ -144,13 +141,11 @@ Result pcvSetVoltageEnabled(bool state, u32 voltage)
|
||||
return rc;
|
||||
}
|
||||
|
||||
Result pcvGetVoltageEnabled(bool *isEnabled, u32 voltage)
|
||||
{
|
||||
Result pcvGetVoltageEnabled(bool *isEnabled, u32 voltage) {
|
||||
IpcCommand c;
|
||||
ipcInitialize(&c);
|
||||
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
u64 magic;
|
||||
u64 cmd_id;
|
||||
u32 voltage;
|
||||
@ -164,8 +159,7 @@ Result pcvGetVoltageEnabled(bool *isEnabled, u32 voltage)
|
||||
|
||||
Result rc = serviceIpcDispatch(&g_pcvSrv);
|
||||
|
||||
if (R_SUCCEEDED(rc))
|
||||
{
|
||||
if (R_SUCCEEDED(rc)) {
|
||||
IpcParsedCommand r;
|
||||
struct {
|
||||
u64 magic;
|
||||
@ -180,6 +174,5 @@ Result pcvGetVoltageEnabled(bool *isEnabled, u32 voltage)
|
||||
*isEnabled = resp->isEnabled;
|
||||
}
|
||||
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user