From: Bastien Nocera Date: Tue, 13 Jan 2026 09:24:58 +0000 (+0100) Subject: HID: wacom: Use pm_ptr instead of #ifdef CONFIG_PM X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a864d16be15625df365a5945f566efc2e36f73c3;p=thirdparty%2Fkernel%2Flinux.git HID: wacom: Use pm_ptr instead of #ifdef CONFIG_PM This increases build coverage and allows to drop an #ifdef. Signed-off-by: Bastien Nocera Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/wacom_sys.c b/drivers/hid/wacom_sys.c index 9a57504e51a1..afc900560706 100644 --- a/drivers/hid/wacom_sys.c +++ b/drivers/hid/wacom_sys.c @@ -2921,7 +2921,6 @@ static void wacom_remove(struct hid_device *hdev) wacom_release_resources(wacom); } -#ifdef CONFIG_PM static int wacom_resume(struct hid_device *hdev) { struct wacom *wacom = hid_get_drvdata(hdev); @@ -2941,7 +2940,6 @@ static int wacom_reset_resume(struct hid_device *hdev) { return wacom_resume(hdev); } -#endif /* CONFIG_PM */ static struct hid_driver wacom_driver = { .name = "wacom", @@ -2949,10 +2947,8 @@ static struct hid_driver wacom_driver = { .probe = wacom_probe, .remove = wacom_remove, .report = wacom_wac_report, -#ifdef CONFIG_PM - .resume = wacom_resume, - .reset_resume = wacom_reset_resume, -#endif + .resume = pm_ptr(wacom_resume), + .reset_resume = pm_ptr(wacom_reset_resume), .raw_event = wacom_raw_event, }; module_hid_driver(wacom_driver);