Fix types. bool -> u8

This commit is contained in:
pixel-stuck 2018-11-17 20:21:41 -05:00 committed by GitHub
parent 6d8682db44
commit 849e436a2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,14 +105,14 @@ Result pcvGetClockRate(PcvModule module, u32 *out_hz) {
return rc;
}
Result pcvSetVoltageEnabled(bool state, u32 voltage) {
Result pcvSetVoltageEnabled(u8 state, u32 voltage) {
IpcCommand c;
ipcInitialize(&c);
struct {
u64 magic;
u64 cmd_id;
bool state;
u8 state;
u32 voltage;
} *raw;
@ -141,7 +141,7 @@ Result pcvSetVoltageEnabled(bool state, u32 voltage) {
return rc;
}
Result pcvGetVoltageEnabled(bool *isEnabled, u32 voltage) {
Result pcvGetVoltageEnabled(u8 *isEnabled, u32 voltage) {
IpcCommand c;
ipcInitialize(&c);
@ -164,7 +164,7 @@ Result pcvGetVoltageEnabled(bool *isEnabled, u32 voltage) {
struct {
u64 magic;
u64 result;
bool isEnabled;
u8 isEnabled;
} *resp;
serviceIpcParse(&g_pcvSrv, &r, sizeof(*resp));