[PATCH v2 02/35] acpi: Add a function to get a device path and scope