From: Bastien Nocera <hadess@hadess.net>
To: linux-input@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, Jiri Kosina <jikos@kernel.org>,
Benjamin Tissoires <benjamin.tissoires@redhat.com>,
Bastien Nocera <hadess@hadess.net>
Subject: [PATCH 01/12] HID: hid-alps: Use pm_ptr instead of #ifdef CONFIG_PM
Date: Mon, 12 Jan 2026 11:52:50 +0100 [thread overview]
Message-ID: <20260112105500.3664834-2-hadess@hadess.net> (raw)
In-Reply-To: <20260112105500.3664834-1-hadess@hadess.net>
This increases build coverage and allows to drop an #ifdef.
Signed-off-by: Bastien Nocera <hadess@hadess.net>
---
drivers/hid/hid-alps.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/hid/hid-alps.c b/drivers/hid/hid-alps.c
index ba00f6e6324b..21e55f3d0d1b 100644
--- a/drivers/hid/hid-alps.c
+++ b/drivers/hid/hid-alps.c
@@ -840,10 +840,8 @@ static struct hid_driver alps_driver = {
.raw_event = alps_raw_event,
.input_mapping = alps_input_mapping,
.input_configured = alps_input_configured,
-#ifdef CONFIG_PM
- .resume = alps_post_resume,
- .reset_resume = alps_post_reset,
-#endif
+ .resume = pm_ptr(alps_post_resume),
+ .reset_resume = pm_ptr(alps_post_reset),
};
module_hid_driver(alps_driver);
--
2.52.0
next prev parent reply other threads:[~2026-01-12 10:57 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-12 10:52 [PATCH 00/12] HID: Use pm_*ptr instead of #ifdef CONFIG_PM* Bastien Nocera
2026-01-12 10:52 ` Bastien Nocera [this message]
2026-01-12 10:52 ` [PATCH 02/12] HID: appletb-kbd: Use pm_ptr instead of #ifdef CONFIG_PM Bastien Nocera
2026-01-12 10:52 ` [PATCH 03/12] HID: asus: " Bastien Nocera
2026-01-12 10:52 ` [PATCH 04/12] HID: lenovo: " Bastien Nocera
2026-01-12 10:52 ` [PATCH 05/12] HID: logitech-dj: " Bastien Nocera
2026-01-12 10:52 ` [PATCH 06/12] HID: nintendo: " Bastien Nocera
2026-01-12 10:52 ` [PATCH 07/12] HID: picolcd_core: " Bastien Nocera
2026-01-12 10:52 ` [PATCH 08/12] HID: hid-sensor-hub: " Bastien Nocera
2026-01-12 10:52 ` [PATCH 09/12] HID: sony: " Bastien Nocera
2026-01-12 17:31 ` kernel test robot
2026-01-12 10:52 ` [PATCH 10/12] HID: uclogic: " Bastien Nocera
2026-01-12 10:53 ` [PATCH 11/12] HID: wacom: " Bastien Nocera
2026-01-12 10:53 ` [PATCH 12/12] HID: surface: Use pm_ptr_sleep instead of #ifdef CONFIG_PM_SLEEP Bastien Nocera
2026-01-12 17:00 ` kernel test robot
2026-01-12 16:41 ` [PATCH 00/12] HID: Use pm_*ptr instead of #ifdef CONFIG_PM* Jiri Kosina
2026-01-12 17:00 ` Benjamin Tissoires
2026-01-12 17:03 ` Jiri Kosina
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260112105500.3664834-2-hadess@hadess.net \
--to=hadess@hadess.net \
--cc=benjamin.tissoires@redhat.com \
--cc=jikos@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®