diff options
Diffstat (limited to 'drivers/acpi/acpica/utdecode.c')
-rw-r--r-- | drivers/acpi/acpica/utdecode.c | 32 |
1 files changed, 3 insertions, 29 deletions
diff --git a/drivers/acpi/acpica/utdecode.c b/drivers/acpi/acpica/utdecode.c index 90ec37c473c6..40e923e675fc 100644 --- a/drivers/acpi/acpica/utdecode.c +++ b/drivers/acpi/acpica/utdecode.c | |||
@@ -88,33 +88,6 @@ const u8 acpi_gbl_ns_properties[ACPI_NUM_NS_TYPES] = { | |||
88 | 88 | ||
89 | /******************************************************************************* | 89 | /******************************************************************************* |
90 | * | 90 | * |
91 | * FUNCTION: acpi_ut_hex_to_ascii_char | ||
92 | * | ||
93 | * PARAMETERS: integer - Contains the hex digit | ||
94 | * position - bit position of the digit within the | ||
95 | * integer (multiple of 4) | ||
96 | * | ||
97 | * RETURN: The converted Ascii character | ||
98 | * | ||
99 | * DESCRIPTION: Convert a hex digit to an Ascii character | ||
100 | * | ||
101 | ******************************************************************************/ | ||
102 | |||
103 | /* Hex to ASCII conversion table */ | ||
104 | |||
105 | static const char acpi_gbl_hex_to_ascii[] = { | ||
106 | '0', '1', '2', '3', '4', '5', '6', '7', | ||
107 | '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' | ||
108 | }; | ||
109 | |||
110 | char acpi_ut_hex_to_ascii_char(u64 integer, u32 position) | ||
111 | { | ||
112 | |||
113 | return (acpi_gbl_hex_to_ascii[(integer >> position) & 0xF]); | ||
114 | } | ||
115 | |||
116 | /******************************************************************************* | ||
117 | * | ||
118 | * FUNCTION: acpi_ut_get_region_name | 91 | * FUNCTION: acpi_ut_get_region_name |
119 | * | 92 | * |
120 | * PARAMETERS: Space ID - ID for the region | 93 | * PARAMETERS: Space ID - ID for the region |
@@ -475,7 +448,8 @@ static const char *acpi_gbl_generic_notify[ACPI_NOTIFY_MAX + 1] = { | |||
475 | /* 09 */ "Device PLD Check", | 448 | /* 09 */ "Device PLD Check", |
476 | /* 0A */ "Reserved", | 449 | /* 0A */ "Reserved", |
477 | /* 0B */ "System Locality Update", | 450 | /* 0B */ "System Locality Update", |
478 | /* 0C */ "Shutdown Request" | 451 | /* 0C */ "Shutdown Request", |
452 | /* 0D */ "System Resource Affinity Update" | ||
479 | }; | 453 | }; |
480 | 454 | ||
481 | static const char *acpi_gbl_device_notify[4] = { | 455 | static const char *acpi_gbl_device_notify[4] = { |
@@ -502,7 +476,7 @@ static const char *acpi_gbl_thermal_notify[4] = { | |||
502 | const char *acpi_ut_get_notify_name(u32 notify_value, acpi_object_type type) | 476 | const char *acpi_ut_get_notify_name(u32 notify_value, acpi_object_type type) |
503 | { | 477 | { |
504 | 478 | ||
505 | /* 00 - 0C are common to all object types */ | 479 | /* 00 - 0D are common to all object types */ |
506 | 480 | ||
507 | if (notify_value <= ACPI_NOTIFY_MAX) { | 481 | if (notify_value <= ACPI_NOTIFY_MAX) { |
508 | return (acpi_gbl_generic_notify[notify_value]); | 482 | return (acpi_gbl_generic_notify[notify_value]); |