ACPICA: Rename nameseg compare macro for clarity
ACPICA commit 92ec0935f27e217dff0b176fca02c2ec3d782bb5 ACPI_COMPARE_NAME changed to ACPI_COMPARE_NAMESEG This clarifies (1) this is a compare on 4-byte namesegs, not a generic compare. Improves understanding of the code. Link: https://github.com/acpica/acpica/commit/92ec0935 Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Erik Schmauss <erik.schmauss@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:

کامیت شده توسط
Rafael J. Wysocki

والد
a3ce7a8e0d
کامیت
5599fb6935
@@ -84,7 +84,7 @@ const union acpi_predefined_info *acpi_ut_match_predefined_method(char *name)
|
||||
|
||||
this_name = acpi_gbl_predefined_methods;
|
||||
while (this_name->info.name[0]) {
|
||||
if (ACPI_COMPARE_NAME(name, this_name->info.name)) {
|
||||
if (ACPI_COMPARE_NAMESEG(name, this_name->info.name)) {
|
||||
return (this_name);
|
||||
}
|
||||
|
||||
@@ -201,7 +201,7 @@ const union acpi_predefined_info *acpi_ut_match_resource_name(char *name)
|
||||
|
||||
this_name = acpi_gbl_resource_names;
|
||||
while (this_name->info.name[0]) {
|
||||
if (ACPI_COMPARE_NAME(name, this_name->info.name)) {
|
||||
if (ACPI_COMPARE_NAMESEG(name, this_name->info.name)) {
|
||||
return (this_name);
|
||||
}
|
||||
|
||||
|
مرجع در شماره جدید
Block a user