aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/utmisc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/acpica/utmisc.c')
-rw-r--r--drivers/acpi/acpica/utmisc.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/utmisc.c b/drivers/acpi/acpica/utmisc.c
index 86f19db74e05..e86f897767e8 100644
--- a/drivers/acpi/acpica/utmisc.c
+++ b/drivers/acpi/acpica/utmisc.c
@@ -52,6 +52,34 @@ ACPI_MODULE_NAME("utmisc")
52 52
53/******************************************************************************* 53/*******************************************************************************
54 * 54 *
55 * FUNCTION: ut_convert_backslashes
56 *
57 * PARAMETERS: Pathname - File pathname string to be converted
58 *
59 * RETURN: Modifies the input Pathname
60 *
61 * DESCRIPTION: Convert all backslashes (0x5C) to forward slashes (0x2F) within
62 * the entire input file pathname string.
63 *
64 ******************************************************************************/
65void ut_convert_backslashes(char *pathname)
66{
67
68 if (!pathname) {
69 return;
70 }
71
72 while (*pathname) {
73 if (*pathname == '\\') {
74 *pathname = '/';
75 }
76
77 pathname++;
78 }
79}
80
81/*******************************************************************************
82 *
55 * FUNCTION: acpi_ut_validate_exception 83 * FUNCTION: acpi_ut_validate_exception
56 * 84 *
57 * PARAMETERS: Status - The acpi_status code to be formatted 85 * PARAMETERS: Status - The acpi_status code to be formatted
@@ -63,6 +91,7 @@ ACPI_MODULE_NAME("utmisc")
63 * an ASCII string. 91 * an ASCII string.
64 * 92 *
65 ******************************************************************************/ 93 ******************************************************************************/
94
66const char *acpi_ut_validate_exception(acpi_status status) 95const char *acpi_ut_validate_exception(acpi_status status)
67{ 96{
68 u32 sub_status; 97 u32 sub_status;