PM: ACPI: Output correct message on target power state
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Tue, 21 Apr 2020 07:55:16 +0000 (15:55 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 27 Apr 2020 08:33:40 +0000 (10:33 +0200)
commita9b760b0266f563b4784f695bbd0e717610dc10a
treee3fb0a16c01892f1aa82bf08abd07de204404db1
parent6a8b55ed4056ea5559ebe4f6a4b247f627870d4c
PM: ACPI: Output correct message on target power state

Transitioned power state logged at the end of setting ACPI power.

However, D3cold won't be in the message because state can only be
D3hot at most.

Use target_state to corretly report when power state is D3cold.

Cc: All applicable <stable@vger.kernel.org>
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/device_pm.c