mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Use an unsigned int instead of an int for the Get/Set Integer interface.
Pointed out by: le
This commit is contained in:
parent
44fce14365
commit
cc58e4ee5e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126766
@ -1369,7 +1369,7 @@ acpi_AllocBuffer(int size)
|
||||
}
|
||||
|
||||
ACPI_STATUS
|
||||
acpi_SetInteger(ACPI_HANDLE handle, char *path, int number)
|
||||
acpi_SetInteger(ACPI_HANDLE handle, char *path, UINT32 number)
|
||||
{
|
||||
ACPI_OBJECT arg1;
|
||||
ACPI_OBJECT_LIST args;
|
||||
@ -1388,7 +1388,7 @@ acpi_SetInteger(ACPI_HANDLE handle, char *path, int number)
|
||||
* Evaluate a path that should return an integer.
|
||||
*/
|
||||
ACPI_STATUS
|
||||
acpi_GetInteger(ACPI_HANDLE handle, char *path, int *number)
|
||||
acpi_GetInteger(ACPI_HANDLE handle, char *path, UINT32 *number)
|
||||
{
|
||||
ACPI_STATUS status;
|
||||
ACPI_BUFFER buf;
|
||||
@ -1435,7 +1435,7 @@ acpi_GetInteger(ACPI_HANDLE handle, char *path, int *number)
|
||||
}
|
||||
|
||||
ACPI_STATUS
|
||||
acpi_ConvertBufferToInteger(ACPI_BUFFER *bufp, int *number)
|
||||
acpi_ConvertBufferToInteger(ACPI_BUFFER *bufp, UINT32 *number)
|
||||
{
|
||||
ACPI_OBJECT *p;
|
||||
int i;
|
||||
|
@ -176,11 +176,11 @@ extern ACPI_STATUS acpi_GetHandleInScope(ACPI_HANDLE parent, char *path,
|
||||
ACPI_HANDLE *result);
|
||||
extern ACPI_BUFFER *acpi_AllocBuffer(int size);
|
||||
extern ACPI_STATUS acpi_ConvertBufferToInteger(ACPI_BUFFER *bufp,
|
||||
int *number);
|
||||
UINT32 *number);
|
||||
extern ACPI_STATUS acpi_GetInteger(ACPI_HANDLE handle, char *path,
|
||||
int *number);
|
||||
UINT32 *number);
|
||||
extern ACPI_STATUS acpi_SetInteger(ACPI_HANDLE handle, char *path,
|
||||
int number);
|
||||
UINT32 number);
|
||||
extern ACPI_STATUS acpi_ForeachPackageObject(ACPI_OBJECT *obj,
|
||||
void (*func)(ACPI_OBJECT *comp, void *arg),
|
||||
void *arg);
|
||||
|
Loading…
Reference in New Issue
Block a user