ACPI: property: Use acpi_dev_parent()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 29 Aug 2022 16:12:33 +0000 (18:12 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 3 Sep 2022 18:51:06 +0000 (20:51 +0200)
commit98378956a407392109817278c6edd464252c7a83
treebd8b671d762e3a520b8686de11729e3acb53bd15
parente3b9b27865c45c771f95b5dcf70ee8e88b343c75
ACPI: property: Use acpi_dev_parent()

After introducing acpi_dev_parent() in commit 62fcb99bdf10 ("ACPI: Drop
parent field from struct acpi_device"), it is better to use it instead
of accessing the dev.parent field in struct acpi_device directly.

Modify acpi_node_get_parent() accordingly.

Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/acpi/property.c