Converted to new return macros

date	99.08.13.16.59.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 16:50:54 +00:00
parent dc8678e37e
commit a46327d8e6
2 changed files with 9 additions and 17 deletions

View File

@ -171,8 +171,7 @@ HwSetMode (
Status = AE_OK;
}
FUNCTION_EXIT;
return (Status);
return_ACPI_STATUS (Status);
}
@ -199,13 +198,11 @@ HwGetMode (void)
if (READ_ACPI_REGISTER (SCI_EN))
{
FUNCTION_EXIT;
return (SYS_MODE_ACPI);
return_VALUE (SYS_MODE_ACPI);
}
else
{
FUNCTION_EXIT;
return (SYS_MODE_LEGACY);
return_VALUE (SYS_MODE_LEGACY);
}
}
@ -270,6 +267,5 @@ HwGetModeCapabilities (void)
}
}
FUNCTION_EXIT;
return (SystemFlags & SYS_MODES_MASK);
return_VALUE (SystemFlags & SYS_MODES_MASK);
}

View File

@ -151,8 +151,7 @@ HwGetBitShift (
for (Shift = 0; ((Mask >> Shift) & 1) == 0; Shift++)
{ ; }
FUNCTION_EXIT;
return (Shift);
return_VALUE (Shift);
}
@ -210,7 +209,7 @@ HwClearAcpiStatus (void)
}
}
FUNCTION_EXIT;
return_VOID;
}
@ -248,8 +247,7 @@ HwObtainSleepTypeRegisterData (
ObjDesc = AllocateObjectDesc ();
if (!ObjDesc)
{
FUNCTION_EXIT;
return AE_NO_MEMORY;
return_ACPI_STATUS (AE_NO_MEMORY);
}
if (!SleepStateReq || !Slp_TypA || !Slp_TypB)
@ -338,8 +336,7 @@ HwObtainSleepTypeRegisterData (
}
CmFree (ObjDesc);
FUNCTION_EXIT;
return (Status);
return_ACPI_STATUS (Status);
}
@ -728,6 +725,5 @@ HwRegisterIO (
RegisterValue >>= HwGetBitShift (Mask);
DEBUG_PRINT (TRACE_IO, ("Register I/O: returning 0x%X\n", RegisterValue));
FUNCTION_EXIT;
return (RegisterValue);
return_ACPI_STATUS (RegisterValue);
}