summaryrefslogtreecommitdiff
path: root/drivers/hid
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2026-01-13 10:24:57 +0100
committerJiri Kosina <jkosina@suse.cz>2026-01-28 19:23:17 +0100
commitd1de9bde979a62b3b331a801965d6e6fe8cbe17b (patch)
tree0a6c3ffb94dfc66afed9dd90b9dac4066e277cfc /drivers/hid
parentb3e5bcffda372bea49555fef4e311687bed439bc (diff)
HID: uclogic: Use pm_ptr instead of #ifdef CONFIG_PM
This increases build coverage and allows to drop an #ifdef. Signed-off-by: Bastien Nocera <hadess@hadess.net> Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/hid-uclogic-core.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/hid/hid-uclogic-core.c b/drivers/hid/hid-uclogic-core.c
index 90ebb81041ea..bd7f93e96e4e 100644
--- a/drivers/hid/hid-uclogic-core.c
+++ b/drivers/hid/hid-uclogic-core.c
@@ -268,7 +268,6 @@ failure:
return rc;
}
-#ifdef CONFIG_PM
static int uclogic_resume(struct hid_device *hdev)
{
int rc;
@@ -283,7 +282,6 @@ static int uclogic_resume(struct hid_device *hdev)
return rc;
}
-#endif
/**
* uclogic_exec_event_hook - if the received event is hooked schedules the
@@ -636,10 +634,8 @@ static struct hid_driver uclogic_driver = {
.raw_event = uclogic_raw_event,
.input_mapping = uclogic_input_mapping,
.input_configured = uclogic_input_configured,
-#ifdef CONFIG_PM
- .resume = uclogic_resume,
- .reset_resume = uclogic_resume,
-#endif
+ .resume = pm_ptr(uclogic_resume),
+ .reset_resume = pm_ptr(uclogic_resume),
};
module_hid_driver(uclogic_driver);