forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/acpi/acpica/utstring.c
....@@ -141,15 +141,15 @@
141141 * Special case for the root node. This can happen if we get an
142142 * error during the execution of module-level code.
143143 */
144
- if (ACPI_COMPARE_NAME(name, ACPI_ROOT_PATHNAME)) {
144
+ if (ACPI_COMPARE_NAMESEG(name, ACPI_ROOT_PATHNAME)) {
145145 return;
146146 }
147147
148
- ACPI_MOVE_NAME(&original_name, name);
148
+ ACPI_COPY_NAMESEG(&original_name, name);
149149
150150 /* Check each character in the name */
151151
152
- for (i = 0; i < ACPI_NAME_SIZE; i++) {
152
+ for (i = 0; i < ACPI_NAMESEG_SIZE; i++) {
153153 if (acpi_ut_valid_name_char(name[i], i)) {
154154 continue;
155155 }