diff options
author | Bob Moore <robert.moore@intel.com> | 2011-11-16 01:59:17 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-01-17 03:36:31 -0500 |
commit | 7fce7a4b0db7d90db553faf568853d56cd908c39 (patch) | |
tree | 514593da0607dd1b5337522db6db06f2d17626fc /drivers/acpi | |
parent | 0e243178047c0219b3367dd44f81040826b7ea83 (diff) |
ACPI 5.0: Add new predefined names
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/acpica/aclocal.h | 3 | ||||
-rw-r--r-- | drivers/acpi/acpica/acpredef.h | 39 | ||||
-rw-r--r-- | drivers/acpi/acpica/nspredef.c | 29 | ||||
-rw-r--r-- | drivers/acpi/acpica/nsrepair.c | 1 | ||||
-rw-r--r-- | drivers/acpi/acpica/nsrepair2.c | 5 |
5 files changed, 73 insertions, 4 deletions
diff --git a/drivers/acpi/acpica/aclocal.h b/drivers/acpi/acpica/aclocal.h index 60aee56acc5b..2ddd61d07a06 100644 --- a/drivers/acpi/acpica/aclocal.h +++ b/drivers/acpi/acpica/aclocal.h | |||
@@ -319,7 +319,8 @@ struct acpi_name_info { | |||
319 | 319 | ||
320 | /* | 320 | /* |
321 | * Used for ACPI_PTYPE1_FIXED, ACPI_PTYPE1_VAR, ACPI_PTYPE2, | 321 | * Used for ACPI_PTYPE1_FIXED, ACPI_PTYPE1_VAR, ACPI_PTYPE2, |
322 | * ACPI_PTYPE2_MIN, ACPI_PTYPE2_PKG_COUNT, ACPI_PTYPE2_COUNT | 322 | * ACPI_PTYPE2_MIN, ACPI_PTYPE2_PKG_COUNT, ACPI_PTYPE2_COUNT, |
323 | * ACPI_PTYPE2_FIX_VAR | ||
323 | */ | 324 | */ |
324 | struct acpi_package_info { | 325 | struct acpi_package_info { |
325 | u8 type; | 326 | u8 type; |
diff --git a/drivers/acpi/acpica/acpredef.h b/drivers/acpi/acpica/acpredef.h index c445cca490ea..ecac9cf38769 100644 --- a/drivers/acpi/acpica/acpredef.h +++ b/drivers/acpi/acpica/acpredef.h | |||
@@ -94,6 +94,14 @@ | |||
94 | * ACPI_PTYPE2_REV_FIXED: Revision at start, each subpackage is Fixed-length | 94 | * ACPI_PTYPE2_REV_FIXED: Revision at start, each subpackage is Fixed-length |
95 | * (Used for _ART, _FPS) | 95 | * (Used for _ART, _FPS) |
96 | * | 96 | * |
97 | * ACPI_PTYPE2_FIX_VAR: Each subpackage consists of some fixed-length elements | ||
98 | * followed by an optional element | ||
99 | * object type | ||
100 | * count | ||
101 | * object type | ||
102 | * count = 0 (optional) | ||
103 | * (Used for _DLM) | ||
104 | * | ||
97 | *****************************************************************************/ | 105 | *****************************************************************************/ |
98 | 106 | ||
99 | enum acpi_return_package_types { | 107 | enum acpi_return_package_types { |
@@ -105,7 +113,8 @@ enum acpi_return_package_types { | |||
105 | ACPI_PTYPE2_PKG_COUNT = 6, | 113 | ACPI_PTYPE2_PKG_COUNT = 6, |
106 | ACPI_PTYPE2_FIXED = 7, | 114 | ACPI_PTYPE2_FIXED = 7, |
107 | ACPI_PTYPE2_MIN = 8, | 115 | ACPI_PTYPE2_MIN = 8, |
108 | ACPI_PTYPE2_REV_FIXED = 9 | 116 | ACPI_PTYPE2_REV_FIXED = 9, |
117 | ACPI_PTYPE2_FIX_VAR = 10 | ||
109 | }; | 118 | }; |
110 | 119 | ||
111 | #ifdef ACPI_CREATE_PREDEFINED_TABLE | 120 | #ifdef ACPI_CREATE_PREDEFINED_TABLE |
@@ -154,6 +163,7 @@ static const union acpi_predefined_info predefined_names[] = | |||
154 | {{"_AC8", 0, ACPI_RTYPE_INTEGER}}, | 163 | {{"_AC8", 0, ACPI_RTYPE_INTEGER}}, |
155 | {{"_AC9", 0, ACPI_RTYPE_INTEGER}}, | 164 | {{"_AC9", 0, ACPI_RTYPE_INTEGER}}, |
156 | {{"_ADR", 0, ACPI_RTYPE_INTEGER}}, | 165 | {{"_ADR", 0, ACPI_RTYPE_INTEGER}}, |
166 | {{"_AEI", 0, ACPI_RTYPE_BUFFER}}, | ||
157 | {{"_AL0", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ | 167 | {{"_AL0", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ |
158 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, | 168 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, |
159 | 169 | ||
@@ -229,6 +239,13 @@ static const union acpi_predefined_info predefined_names[] = | |||
229 | {{"_CID", 0, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING | ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints/Strs) */ | 239 | {{"_CID", 0, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING | ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints/Strs) */ |
230 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING, 0,0}, 0,0}}, | 240 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING, 0,0}, 0,0}}, |
231 | 241 | ||
242 | {{"_CLS", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (3 Int) */ | ||
243 | {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 3, 0}, 0, 0}}, | ||
244 | |||
245 | {{"_CPC", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints/Bufs) */ | ||
246 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER | ACPI_RTYPE_BUFFER, 0, 0}, 0, | ||
247 | 0}}, | ||
248 | |||
232 | {{"_CRS", 0, ACPI_RTYPE_BUFFER}}, | 249 | {{"_CRS", 0, ACPI_RTYPE_BUFFER}}, |
233 | {{"_CRT", 0, ACPI_RTYPE_INTEGER}}, | 250 | {{"_CRT", 0, ACPI_RTYPE_INTEGER}}, |
234 | {{"_CSD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (1 Int(n), n-1 Int) */ | 251 | {{"_CSD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (1 Int(n), n-1 Int) */ |
@@ -237,12 +254,21 @@ static const union acpi_predefined_info predefined_names[] = | |||
237 | {{"_CST", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (1 Int(n), n Pkg (1 Buf/3 Int) */ | 254 | {{"_CST", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (1 Int(n), n Pkg (1 Buf/3 Int) */ |
238 | {{{ACPI_PTYPE2_PKG_COUNT,ACPI_RTYPE_BUFFER, 1, ACPI_RTYPE_INTEGER}, 3,0}}, | 255 | {{{ACPI_PTYPE2_PKG_COUNT,ACPI_RTYPE_BUFFER, 1, ACPI_RTYPE_INTEGER}, 3,0}}, |
239 | 256 | ||
257 | {{"_CWS", 1, ACPI_RTYPE_INTEGER}}, | ||
240 | {{"_DCK", 1, ACPI_RTYPE_INTEGER}}, | 258 | {{"_DCK", 1, ACPI_RTYPE_INTEGER}}, |
241 | {{"_DCS", 0, ACPI_RTYPE_INTEGER}}, | 259 | {{"_DCS", 0, ACPI_RTYPE_INTEGER}}, |
242 | {{"_DDC", 1, ACPI_RTYPE_INTEGER | ACPI_RTYPE_BUFFER}}, | 260 | {{"_DDC", 1, ACPI_RTYPE_INTEGER | ACPI_RTYPE_BUFFER}}, |
243 | {{"_DDN", 0, ACPI_RTYPE_STRING}}, | 261 | {{"_DDN", 0, ACPI_RTYPE_STRING}}, |
262 | {{"_DEP", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ | ||
263 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0}, 0, 0}}, | ||
264 | |||
244 | {{"_DGS", 0, ACPI_RTYPE_INTEGER}}, | 265 | {{"_DGS", 0, ACPI_RTYPE_INTEGER}}, |
245 | {{"_DIS", 0, 0}}, | 266 | {{"_DIS", 0, 0}}, |
267 | |||
268 | {{"_DLM", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (1 Ref, 0/1 Optional Buf/Ref) */ | ||
269 | {{{ACPI_PTYPE2_FIX_VAR, ACPI_RTYPE_REFERENCE, 1, | ||
270 | ACPI_RTYPE_REFERENCE | ACPI_RTYPE_BUFFER}, 0, 0}}, | ||
271 | |||
246 | {{"_DMA", 0, ACPI_RTYPE_BUFFER}}, | 272 | {{"_DMA", 0, ACPI_RTYPE_BUFFER}}, |
247 | {{"_DOD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints) */ | 273 | {{"_DOD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Ints) */ |
248 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0}, 0,0}}, | 274 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0}, 0,0}}, |
@@ -262,6 +288,7 @@ static const union acpi_predefined_info predefined_names[] = | |||
262 | {{"_EJ3", 1, 0}}, | 288 | {{"_EJ3", 1, 0}}, |
263 | {{"_EJ4", 1, 0}}, | 289 | {{"_EJ4", 1, 0}}, |
264 | {{"_EJD", 0, ACPI_RTYPE_STRING}}, | 290 | {{"_EJD", 0, ACPI_RTYPE_STRING}}, |
291 | {{"_EVT", 1, 0}}, | ||
265 | {{"_FDE", 0, ACPI_RTYPE_BUFFER}}, | 292 | {{"_FDE", 0, ACPI_RTYPE_BUFFER}}, |
266 | {{"_FDI", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (16 Int) */ | 293 | {{"_FDI", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (16 Int) */ |
267 | {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 16,0}, 0,0}}, | 294 | {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 16,0}, 0,0}}, |
@@ -281,14 +308,17 @@ static const union acpi_predefined_info predefined_names[] = | |||
281 | {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 3, 0}, 0, 0}}, | 308 | {{{ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 3, 0}, 0, 0}}, |
282 | 309 | ||
283 | {{"_GAI", 0, ACPI_RTYPE_INTEGER}}, | 310 | {{"_GAI", 0, ACPI_RTYPE_INTEGER}}, |
311 | {{"_GCP", 0, ACPI_RTYPE_INTEGER}}, | ||
284 | {{"_GHL", 0, ACPI_RTYPE_INTEGER}}, | 312 | {{"_GHL", 0, ACPI_RTYPE_INTEGER}}, |
285 | {{"_GLK", 0, ACPI_RTYPE_INTEGER}}, | 313 | {{"_GLK", 0, ACPI_RTYPE_INTEGER}}, |
286 | {{"_GPD", 0, ACPI_RTYPE_INTEGER}}, | 314 | {{"_GPD", 0, ACPI_RTYPE_INTEGER}}, |
287 | {{"_GPE", 0, ACPI_RTYPE_INTEGER}}, /* _GPE method, not _GPE scope */ | 315 | {{"_GPE", 0, ACPI_RTYPE_INTEGER}}, /* _GPE method, not _GPE scope */ |
316 | {{"_GRT", 0, ACPI_RTYPE_BUFFER}}, | ||
288 | {{"_GSB", 0, ACPI_RTYPE_INTEGER}}, | 317 | {{"_GSB", 0, ACPI_RTYPE_INTEGER}}, |
289 | {{"_GTF", 0, ACPI_RTYPE_BUFFER}}, | 318 | {{"_GTF", 0, ACPI_RTYPE_BUFFER}}, |
290 | {{"_GTM", 0, ACPI_RTYPE_BUFFER}}, | 319 | {{"_GTM", 0, ACPI_RTYPE_BUFFER}}, |
291 | {{"_GTS", 1, 0}}, | 320 | {{"_GTS", 1, 0}}, |
321 | {{"_GWS", 1, ACPI_RTYPE_INTEGER}}, | ||
292 | {{"_HID", 0, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING}}, | 322 | {{"_HID", 0, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING}}, |
293 | {{"_HOT", 0, ACPI_RTYPE_INTEGER}}, | 323 | {{"_HOT", 0, ACPI_RTYPE_INTEGER}}, |
294 | {{"_HPP", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (4 Int) */ | 324 | {{"_HPP", 0, ACPI_RTYPE_PACKAGE}}, /* Fixed-length (4 Int) */ |
@@ -303,6 +333,7 @@ static const union acpi_predefined_info predefined_names[] = | |||
303 | {{"_HPX", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (var Ints) */ | 333 | {{"_HPX", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (var Ints) */ |
304 | {{{ACPI_PTYPE2_MIN, ACPI_RTYPE_INTEGER, 5,0}, 0,0}}, | 334 | {{{ACPI_PTYPE2_MIN, ACPI_RTYPE_INTEGER, 5,0}, 0,0}}, |
305 | 335 | ||
336 | {{"_HRV", 0, ACPI_RTYPE_INTEGER}}, | ||
306 | {{"_IFT", 0, ACPI_RTYPE_INTEGER}}, /* See IPMI spec */ | 337 | {{"_IFT", 0, ACPI_RTYPE_INTEGER}}, /* See IPMI spec */ |
307 | {{"_INI", 0, 0}}, | 338 | {{"_INI", 0, 0}}, |
308 | {{"_IRC", 0, 0}}, | 339 | {{"_IRC", 0, 0}}, |
@@ -361,6 +392,9 @@ static const union acpi_predefined_info predefined_names[] = | |||
361 | {{"_PR3", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ | 392 | {{"_PR3", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ |
362 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0}, 0, 0}}, | 393 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0}, 0, 0}}, |
363 | 394 | ||
395 | {{"_PRE", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ | ||
396 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0}, 0, 0}}, | ||
397 | |||
364 | {{"_PRL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ | 398 | {{"_PRL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ |
365 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0}, 0, 0}}, | 399 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0, 0}, 0, 0}}, |
366 | 400 | ||
@@ -391,6 +425,7 @@ static const union acpi_predefined_info predefined_names[] = | |||
391 | {{"_PSD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (5 Int) with count */ | 425 | {{"_PSD", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Pkgs) each (5 Int) with count */ |
392 | {{{ACPI_PTYPE2_COUNT, ACPI_RTYPE_INTEGER,0,0}, 0,0}}, | 426 | {{{ACPI_PTYPE2_COUNT, ACPI_RTYPE_INTEGER,0,0}, 0,0}}, |
393 | 427 | ||
428 | {{"_PSE", 1, 0}}, | ||
394 | {{"_PSL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ | 429 | {{"_PSL", 0, ACPI_RTYPE_PACKAGE}}, /* Variable-length (Refs) */ |
395 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, | 430 | {{{ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0}, 0,0}}, |
396 | 431 | ||
@@ -457,6 +492,7 @@ static const union acpi_predefined_info predefined_names[] = | |||
457 | {{"_SLI", 0, ACPI_RTYPE_BUFFER}}, | 492 | {{"_SLI", 0, ACPI_RTYPE_BUFFER}}, |
458 | {{"_SPD", 1, ACPI_RTYPE_INTEGER}}, | 493 | {{"_SPD", 1, ACPI_RTYPE_INTEGER}}, |
459 | {{"_SRS", 1, 0}}, | 494 | {{"_SRS", 1, 0}}, |
495 | {{"_SRT", 1, ACPI_RTYPE_INTEGER}}, | ||
460 | {{"_SRV", 0, ACPI_RTYPE_INTEGER}}, /* See IPMI spec */ | 496 | {{"_SRV", 0, ACPI_RTYPE_INTEGER}}, /* See IPMI spec */ |
461 | {{"_SST", 1, 0}}, | 497 | {{"_SST", 1, 0}}, |
462 | {{"_STA", 0, ACPI_RTYPE_INTEGER}}, | 498 | {{"_STA", 0, ACPI_RTYPE_INTEGER}}, |
@@ -464,6 +500,7 @@ static const union acpi_predefined_info predefined_names[] = | |||
464 | {{"_STP", 2, ACPI_RTYPE_INTEGER}}, | 500 | {{"_STP", 2, ACPI_RTYPE_INTEGER}}, |
465 | {{"_STR", 0, ACPI_RTYPE_BUFFER}}, | 501 | {{"_STR", 0, ACPI_RTYPE_BUFFER}}, |
466 | {{"_STV", 2, ACPI_RTYPE_INTEGER}}, | 502 | {{"_STV", 2, ACPI_RTYPE_INTEGER}}, |
503 | {{"_SUB", 0, ACPI_RTYPE_STRING}}, | ||
467 | {{"_SUN", 0, ACPI_RTYPE_INTEGER}}, | 504 | {{"_SUN", 0, ACPI_RTYPE_INTEGER}}, |
468 | {{"_SWS", 0, ACPI_RTYPE_INTEGER}}, | 505 | {{"_SWS", 0, ACPI_RTYPE_INTEGER}}, |
469 | {{"_TC1", 0, ACPI_RTYPE_INTEGER}}, | 506 | {{"_TC1", 0, ACPI_RTYPE_INTEGER}}, |
diff --git a/drivers/acpi/acpica/nspredef.c b/drivers/acpi/acpica/nspredef.c index c845c8089f39..db80366b3dd9 100644 --- a/drivers/acpi/acpica/nspredef.c +++ b/drivers/acpi/acpica/nspredef.c | |||
@@ -620,6 +620,7 @@ acpi_ns_check_package(struct acpi_predefined_data *data, | |||
620 | case ACPI_PTYPE2_FIXED: | 620 | case ACPI_PTYPE2_FIXED: |
621 | case ACPI_PTYPE2_MIN: | 621 | case ACPI_PTYPE2_MIN: |
622 | case ACPI_PTYPE2_COUNT: | 622 | case ACPI_PTYPE2_COUNT: |
623 | case ACPI_PTYPE2_FIX_VAR: | ||
623 | 624 | ||
624 | /* | 625 | /* |
625 | * These types all return a single Package that consists of a | 626 | * These types all return a single Package that consists of a |
@@ -759,6 +760,34 @@ acpi_ns_check_package_list(struct acpi_predefined_data *data, | |||
759 | } | 760 | } |
760 | break; | 761 | break; |
761 | 762 | ||
763 | case ACPI_PTYPE2_FIX_VAR: | ||
764 | /* | ||
765 | * Each subpackage has a fixed number of elements and an | ||
766 | * optional element | ||
767 | */ | ||
768 | expected_count = | ||
769 | package->ret_info.count1 + package->ret_info.count2; | ||
770 | if (sub_package->package.count < expected_count) { | ||
771 | goto package_too_small; | ||
772 | } | ||
773 | |||
774 | status = | ||
775 | acpi_ns_check_package_elements(data, sub_elements, | ||
776 | package->ret_info. | ||
777 | object_type1, | ||
778 | package->ret_info. | ||
779 | count1, | ||
780 | package->ret_info. | ||
781 | object_type2, | ||
782 | sub_package->package. | ||
783 | count - | ||
784 | package->ret_info. | ||
785 | count1, 0); | ||
786 | if (ACPI_FAILURE(status)) { | ||
787 | return (status); | ||
788 | } | ||
789 | break; | ||
790 | |||
762 | case ACPI_PTYPE2_FIXED: | 791 | case ACPI_PTYPE2_FIXED: |
763 | 792 | ||
764 | /* Each sub-package has a fixed length */ | 793 | /* Each sub-package has a fixed length */ |
diff --git a/drivers/acpi/acpica/nsrepair.c b/drivers/acpi/acpica/nsrepair.c index ac7b854b0bd7..dd0a0bdc4fc7 100644 --- a/drivers/acpi/acpica/nsrepair.c +++ b/drivers/acpi/acpica/nsrepair.c | |||
@@ -634,6 +634,7 @@ acpi_ns_remove_null_elements(struct acpi_predefined_data *data, | |||
634 | case ACPI_PTYPE2_FIXED: | 634 | case ACPI_PTYPE2_FIXED: |
635 | case ACPI_PTYPE2_MIN: | 635 | case ACPI_PTYPE2_MIN: |
636 | case ACPI_PTYPE2_REV_FIXED: | 636 | case ACPI_PTYPE2_REV_FIXED: |
637 | case ACPI_PTYPE2_FIX_VAR: | ||
637 | break; | 638 | break; |
638 | 639 | ||
639 | default: | 640 | default: |
diff --git a/drivers/acpi/acpica/nsrepair2.c b/drivers/acpi/acpica/nsrepair2.c index 024c4f263f87..3ee2b22a9f7d 100644 --- a/drivers/acpi/acpica/nsrepair2.c +++ b/drivers/acpi/acpica/nsrepair2.c | |||
@@ -467,11 +467,12 @@ acpi_ns_repair_HID(struct acpi_predefined_data *data, | |||
467 | } | 467 | } |
468 | 468 | ||
469 | /* | 469 | /* |
470 | * Copy and uppercase the string. From the ACPI specification: | 470 | * Copy and uppercase the string. From the ACPI 5.0 specification: |
471 | * | 471 | * |
472 | * A valid PNP ID must be of the form "AAA####" where A is an uppercase | 472 | * A valid PNP ID must be of the form "AAA####" where A is an uppercase |
473 | * letter and # is a hex digit. A valid ACPI ID must be of the form | 473 | * letter and # is a hex digit. A valid ACPI ID must be of the form |
474 | * "ACPI####" where # is a hex digit. | 474 | * "NNNN####" where N is an uppercase letter or decimal digit, and |
475 | * # is a hex digit. | ||
475 | */ | 476 | */ |
476 | for (dest = new_string->string.pointer; *source; dest++, source++) { | 477 | for (dest = new_string->string.pointer; *source; dest++, source++) { |
477 | *dest = (char)ACPI_TOUPPER(*source); | 478 | *dest = (char)ACPI_TOUPPER(*source); |