diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-05-31 00:14:26 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-05-31 00:14:26 -0400 |
commit | d5b732b17ca2fc74f370bdba5aae6c804fac8c35 (patch) | |
tree | 4facc6d96116b032a3c1cb2ced9b2a3008e9216e /drivers/acpi/bus.c | |
parent | eb6e8605ee5f5b4e116451bf01b3f35eac446dde (diff) | |
parent | 67a3e12b05e055c0415c556a315a3d3eb637e29e (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'drivers/acpi/bus.c')
-rw-r--r-- | drivers/acpi/bus.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index 9042a8579668..c1d23cd71652 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c | |||
@@ -401,11 +401,6 @@ static void acpi_print_osc_error(acpi_handle handle, | |||
401 | printk("\n"); | 401 | printk("\n"); |
402 | } | 402 | } |
403 | 403 | ||
404 | static u8 hex_val(unsigned char c) | ||
405 | { | ||
406 | return isdigit(c) ? c - '0' : toupper(c) - 'A' + 10; | ||
407 | } | ||
408 | |||
409 | static acpi_status acpi_str_to_uuid(char *str, u8 *uuid) | 404 | static acpi_status acpi_str_to_uuid(char *str, u8 *uuid) |
410 | { | 405 | { |
411 | int i; | 406 | int i; |
@@ -422,8 +417,8 @@ static acpi_status acpi_str_to_uuid(char *str, u8 *uuid) | |||
422 | return AE_BAD_PARAMETER; | 417 | return AE_BAD_PARAMETER; |
423 | } | 418 | } |
424 | for (i = 0; i < 16; i++) { | 419 | for (i = 0; i < 16; i++) { |
425 | uuid[i] = hex_val(str[opc_map_to_uuid[i]]) << 4; | 420 | uuid[i] = hex_to_bin(str[opc_map_to_uuid[i]]) << 4; |
426 | uuid[i] |= hex_val(str[opc_map_to_uuid[i] + 1]); | 421 | uuid[i] |= hex_to_bin(str[opc_map_to_uuid[i] + 1]); |
427 | } | 422 | } |
428 | return AE_OK; | 423 | return AE_OK; |
429 | } | 424 | } |