fix formatting

This commit is contained in:
dark-samus 2018-11-17 01:51:42 -05:00
parent 7f2c3f7d3c
commit e51c787d84

View File

@ -105,13 +105,11 @@ Result pcvGetClockRate(PcvModule module, u32 *out_hz) {
return rc; return rc;
} }
Result pcvSetVoltageEnabled(bool state, u32 voltage) Result pcvSetVoltageEnabled(bool state, u32 voltage) {
{
IpcCommand c; IpcCommand c;
ipcInitialize(&c); ipcInitialize(&c);
struct struct {
{
u64 magic; u64 magic;
u64 cmd_id; u64 cmd_id;
bool state; bool state;
@ -127,8 +125,7 @@ Result pcvSetVoltageEnabled(bool state, u32 voltage)
Result rc = serviceIpcDispatch(&g_pcvSrv); Result rc = serviceIpcDispatch(&g_pcvSrv);
if (R_SUCCEEDED(rc)) if (R_SUCCEEDED(rc)) {
{
IpcParsedCommand r; IpcParsedCommand r;
struct { struct {
u64 magic; u64 magic;
@ -144,13 +141,11 @@ Result pcvSetVoltageEnabled(bool state, u32 voltage)
return rc; return rc;
} }
Result pcvGetVoltageEnabled(bool *isEnabled, u32 voltage) Result pcvGetVoltageEnabled(bool *isEnabled, u32 voltage) {
{
IpcCommand c; IpcCommand c;
ipcInitialize(&c); ipcInitialize(&c);
struct struct {
{
u64 magic; u64 magic;
u64 cmd_id; u64 cmd_id;
u32 voltage; u32 voltage;
@ -164,8 +159,7 @@ Result pcvGetVoltageEnabled(bool *isEnabled, u32 voltage)
Result rc = serviceIpcDispatch(&g_pcvSrv); Result rc = serviceIpcDispatch(&g_pcvSrv);
if (R_SUCCEEDED(rc)) if (R_SUCCEEDED(rc)) {
{
IpcParsedCommand r; IpcParsedCommand r;
struct { struct {
u64 magic; u64 magic;
@ -180,6 +174,5 @@ Result pcvGetVoltageEnabled(bool *isEnabled, u32 voltage)
*isEnabled = resp->isEnabled; *isEnabled = resp->isEnabled;
} }
return rc; return rc;
} }