to_power_resource
resource = to_power_resource(to_acpi_device(dev));
return to_power_resource(device);