Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318786
b: refs/heads/master
c: c6e1733
h: refs/heads/master
v: v3
  • Loading branch information
Bob Moore authored and Len Brown committed Jun 1, 2012
1 parent 3d934fe commit bf41aac
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 43e1c6892c88ae0730cb0eb7bd5a2812b960c32a
refs/heads/master: c6e1733e6fc384ff1a219d7dfcb8b072030ae792
2 changes: 2 additions & 0 deletions trunk/drivers/acpi/acpica/acutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,8 @@ acpi_ut_short_divide(u64 in_dividend,
/*
* utmisc
*/
void ut_convert_backslashes(char *pathname);

const char *acpi_ut_validate_exception(acpi_status status);

u8 acpi_ut_is_pci_root_bridge(char *id);
Expand Down
29 changes: 29 additions & 0 deletions trunk/drivers/acpi/acpica/utmisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,34 @@
#define _COMPONENT ACPI_UTILITIES
ACPI_MODULE_NAME("utmisc")

/*******************************************************************************
*
* FUNCTION: ut_convert_backslashes
*
* PARAMETERS: Pathname - File pathname string to be converted
*
* RETURN: Modifies the input Pathname
*
* DESCRIPTION: Convert all backslashes (0x5C) to forward slashes (0x2F) within
* the entire input file pathname string.
*
******************************************************************************/
void ut_convert_backslashes(char *pathname)
{

if (!pathname) {
return;
}

while (*pathname) {
if (*pathname == '\\') {
*pathname = '/';
}

pathname++;
}
}

/*******************************************************************************
*
* FUNCTION: acpi_ut_validate_exception
Expand All @@ -63,6 +91,7 @@ ACPI_MODULE_NAME("utmisc")
* an ASCII string.
*
******************************************************************************/

const char *acpi_ut_validate_exception(acpi_status status)
{
u32 sub_status;
Expand Down

0 comments on commit bf41aac

Please sign in to comment.