Re: [PATCH] ACPI: PM: Unexport acpi_device_get_power()
From: Mika Westerberg
Date: Thu Jul 04 2019 - 03:47:01 EST
On Thu, Jul 04, 2019 at 01:02:49AM +0200, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
>
> Using acpi_device_get_power() outside of ACPI device initialization
> and ACPI sysfs is problematic due to the way in which power resources
> are handled by it, so unexport it and add a paragraph explaining the
> pitfalls to its kerneldoc comment.
>
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
> ---
Makes perfect sense!
Reviewed-by: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx>