[PATCH v3 0/1] platform/x86: asus-wmi: fix build without CONFIG_SUSPEND

From: Luke Jones
Date: Sat May 24 2025 - 06:14:08 EST


Fixes "platform/x86: asus-wmi: Refactor Ally suspend/resume".

Verified using the following details provided by test robot:

tree: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git review-ilpo-next
head: 83579675331059689e2869bf752ca9e17fadbd82
commit: feea7bd6b02d43a794e3f065650d89cf8d8e8e59 [74/89] platform/x86: asus-wmi: Refactor Ally suspend/resume
config: x86_64-buildonly-randconfig-004-20250509 (https://download.01.org/0day-ci/archive/20250509/202505090418.DaeaXe4i-lkp@xxxxxxxxx/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250509/202505090418.DaeaXe4i-lkp@xxxxxxxxx/reproduce)

I've not done anything fancy here and left asus_hotk_prepare() as is, as it is *incredibly* unlikely anyone would ever run a ROG Ally without suspend enabled.

Sincerest apologies to all for the noise.

Changelog:
- V2:
- Move functions and struct together to be under one ifdef block
- Use wrapper functions for s2idle registration
- V3:
- Use the correct commit for patch. V1 was missing the full set of changes :(
- Reference the right patch in changelog....

Luke Jones (1):
platform/x86: asus-wmi: fix build without CONFIG_SUSPEND

drivers/platform/x86/asus-wmi.c | 33 ++++++++++++++++++++++++---------
1 file changed, 24 insertions(+), 9 deletions(-)

--
2.49.0