ACPI: PM: s2idle: Refactor common code
authorPratik Vishwakarma <Pratik.Vishwakarma@amd.com>
Thu, 17 Jun 2021 16:42:09 +0000 (11:42 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 18 Jun 2021 16:39:54 +0000 (18:39 +0200)
commit4a012dc82d504f9b6a9654e4a28d1938c9a6cb2f
treec21b6293590a3ae2b26369533f4b39ecc89a2d06
parent904d4a6c074b9d69b673c7cd7d66f55cfa7610ea
ACPI: PM: s2idle: Refactor common code

Refactor common code to prepare for upcoming changes.
 * Remove unused struct.
 * Print error before returning.
 * Frees ACPI obj if _DSM type is not as expected.
 * Treat lps0_dsm_func_mask as an integer rather than character
 * Remove extra out_obj
 * Move rev_id

Co-developed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Pratik Vishwakarma <Pratik.Vishwakarma@amd.com>
Tested-by: Julian Sikorski <belegdol@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/x86/s2idle.c