Re: [PATCH] ACPI: PM: Unexport acpi_device_get_power()

Mika Westerberg
2019-07-04T07:46:49Z

On Thu, Jul 04, 2019 at 01:02:49AM +0200, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>
> 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@intel.com>
> ---

Makes perfect sense!

Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>