hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/acpi/acpica/psargs.c
....@@ -3,7 +3,7 @@
33 *
44 * Module Name: psargs - Parse AML opcode arguments
55 *
6
- * Copyright (C) 2000 - 2018, Intel Corp.
6
+ * Copyright (C) 2000 - 2020, Intel Corp.
77 *
88 *****************************************************************************/
99
....@@ -150,21 +150,21 @@
150150
151151 /* Two name segments */
152152
153
- end += 1 + (2 * ACPI_NAME_SIZE);
153
+ end += 1 + (2 * ACPI_NAMESEG_SIZE);
154154 break;
155155
156156 case AML_MULTI_NAME_PREFIX:
157157
158158 /* Multiple name segments, 4 chars each, count in next byte */
159159
160
- end += 2 + (*(end + 1) * ACPI_NAME_SIZE);
160
+ end += 2 + (*(end + 1) * ACPI_NAMESEG_SIZE);
161161 break;
162162
163163 default:
164164
165165 /* Single name segment */
166166
167
- end += ACPI_NAME_SIZE;
167
+ end += ACPI_NAMESEG_SIZE;
168168 break;
169169 }
170170
....@@ -522,7 +522,7 @@
522522
523523 ACPI_MOVE_32_TO_32(&name, parser_state->aml);
524524 acpi_ps_set_name(field, name);
525
- parser_state->aml += ACPI_NAME_SIZE;
525
+ parser_state->aml += ACPI_NAMESEG_SIZE;
526526
527527 ASL_CV_CAPTURE_COMMENTS_ONLY(parser_state);
528528