From nobody Sun Feb 8 13:45:39 2026 Received: from mslow3.mail.gandi.net (mslow3.mail.gandi.net [217.70.178.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9B72D352C36; Mon, 12 Jan 2026 10:57:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.178.249 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768215481; cv=none; b=VSIAvbBwJtrD4uisPpNyIYHgBEblSkobqbGhs6zP51Ht8PZuyw1RHkbi/ryij8ZO7oOnO01z51yaNJUgUwpbqPT6uk8pwywrz/4VXFTJ6LL+Z7KUsB1xx0Tram01cU19NcuH9ABgJN3OBffSzsWYZxXP98QJuCahCZUKtjrGEh4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768215481; c=relaxed/simple; bh=ADw8PLqiVLiw+d76UkH/OwzQtELTsZ0WkSXhDv4AwQY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TaSiILmq+WnJW32deLUgYP71J3W0JtB4XCYauDGdC2wNcRblCjHaWmDKEYBlOtT5fxqZHsYg3/0/OjC3bJcTF94ryh7I3ePublSNd1jfaBkO1Enx3rd+bLjDvmH+3XPjNSHWZ++iWG9FxqEkfaQnsHXh3NqH4pS0x/hqeQd3kU0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net; spf=pass smtp.mailfrom=hadess.net; arc=none smtp.client-ip=217.70.178.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hadess.net Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by mslow3.mail.gandi.net (Postfix) with ESMTP id 9AA71580C84; Mon, 12 Jan 2026 10:55:17 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 6943241DDB; Mon, 12 Jan 2026 10:55:09 +0000 (UTC) From: Bastien Nocera To: linux-input@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Jiri Kosina , Benjamin Tissoires , Bastien Nocera Subject: [PATCH 01/12] HID: hid-alps: Use pm_ptr instead of #ifdef CONFIG_PM Date: Mon, 12 Jan 2026 11:52:50 +0100 Message-ID: <20260112105500.3664834-2-hadess@hadess.net> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260112105500.3664834-1-hadess@hadess.net> References: <20260112105500.3664834-1-hadess@hadess.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: hadess@hadess.net X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduudejvdejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeeurghsthhivghnucfpohgtvghrrgcuoehhrgguvghssheshhgruggvshhsrdhnvghtqeenucggtffrrghtthgvrhhnpeevtefhleevjeffteekleehheeujeelhfdvheethefggefhkefgvdefhfegkeeiteenucfkphepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefpdhhvghlohepohhlihhmphhitgdpmhgrihhlfhhrohhmpehhrgguvghssheshhgruggvshhsrdhnvghtpdhqihgupeeileegfedvgeduffffuedpmhhouggvpehsmhhtphhouhhtpdhnsggprhgtphhtthhopeehpdhrtghpthhtoheplhhinhhugidqihhnphhuthesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehjihhkohhssehkvghrnhgvl hdrohhrghdprhgtphhtthhopegsvghnjhgrmhhinhdrthhishhsohhirhgvshesrhgvughhrghtrdgtohhmpdhrtghpthhtohephhgruggvshhssehhrgguvghsshdrnhgvth Content-Type: text/plain; charset="utf-8" This increases build coverage and allows to drop an #ifdef. Signed-off-by: Bastien Nocera --- 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 =3D { .raw_event =3D alps_raw_event, .input_mapping =3D alps_input_mapping, .input_configured =3D alps_input_configured, -#ifdef CONFIG_PM - .resume =3D alps_post_resume, - .reset_resume =3D alps_post_reset, -#endif + .resume =3D pm_ptr(alps_post_resume), + .reset_resume =3D pm_ptr(alps_post_reset), }; =20 module_hid_driver(alps_driver); --=20 2.52.0 From nobody Sun Feb 8 13:45:39 2026 Received: from mslow3.mail.gandi.net (mslow3.mail.gandi.net [217.70.178.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5F39D352C2A; Mon, 12 Jan 2026 10:57:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.178.249 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768215483; cv=none; b=bjoy/nc9gQtHi5Qz7XOH5H8bLp800m+sZTzDYw/3L3+0Mpkl75SQcs3itqTFHdOTDACFiy03/4MNFw8F2BVMVElHalVfNCsE/vwkQhCkpHqZQQ4WxrLo9jRAYfT48fAOBw093eWOfQ8MTogBpng8PhmcdLpGkxFIU+xsSwt8c9c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768215483; c=relaxed/simple; bh=ezTNtmZHvu1SN5YrmPwxzXGk6x6UpG9wIQrWZIZrbGY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jAC8Oq/X1jxzO8U1P4+yQVSpGDosIXEMcFeG6ppHxzXD2kEUCVM/GEmfVK2aNeir69rGUXm78Bt3s80r0LUFCOF/a2pz8ED+P5K/01/OxrouKeOlyXa//5VV5a3/Wm3j7knZ+APpchk/dYTCM4v2uiaP4GtSYJxfzUFG0E7GTPw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net; spf=pass smtp.mailfrom=hadess.net; arc=none smtp.client-ip=217.70.178.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hadess.net Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::224]) by mslow3.mail.gandi.net (Postfix) with ESMTP id 9AE03580C85; Mon, 12 Jan 2026 10:55:17 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 1C73D433B0; Mon, 12 Jan 2026 10:55:10 +0000 (UTC) From: Bastien Nocera To: linux-input@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Jiri Kosina , Benjamin Tissoires , Bastien Nocera Subject: [PATCH 02/12] HID: appletb-kbd: Use pm_ptr instead of #ifdef CONFIG_PM Date: Mon, 12 Jan 2026 11:52:51 +0100 Message-ID: <20260112105500.3664834-3-hadess@hadess.net> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260112105500.3664834-1-hadess@hadess.net> References: <20260112105500.3664834-1-hadess@hadess.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: hadess@hadess.net X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduudejvdejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeeurghsthhivghnucfpohgtvghrrgcuoehhrgguvghssheshhgruggvshhsrdhnvghtqeenucggtffrrghtthgvrhhnpeevtefhleevjeffteekleehheeujeelhfdvheethefggefhkefgvdefhfegkeeiteenucfkphepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehinhgvthepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefpdhhvghlohepohhlihhmphhitgdpmhgrihhlfhhrohhmpehhrgguvghssheshhgruggvshhsrdhnvghtpdhqihgupeduveejfeffgeeffeeutddpmhhouggvpehsmhhtphhouhhtpdhnsggprhgtphhtthhopeehpdhrtghpthhtoheplhhinhhugidqihhnphhuthesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehjihhkohhssehkvghrnhgvl hdrohhrghdprhgtphhtthhopegsvghnjhgrmhhinhdrthhishhsohhirhgvshesrhgvughhrghtrdgtohhmpdhrtghpthhtohephhgruggvshhssehhrgguvghsshdrnhgvth Content-Type: text/plain; charset="utf-8" This increases build coverage and allows to drop an #ifdef. Signed-off-by: Bastien Nocera --- drivers/hid/hid-appletb-kbd.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/hid/hid-appletb-kbd.c b/drivers/hid/hid-appletb-kbd.c index b00687e67ce8..064e136610ec 100644 --- a/drivers/hid/hid-appletb-kbd.c +++ b/drivers/hid/hid-appletb-kbd.c @@ -501,10 +501,8 @@ static struct hid_driver appletb_kbd_hid_driver =3D { .remove =3D appletb_kbd_remove, .event =3D appletb_kbd_hid_event, .input_configured =3D appletb_kbd_input_configured, -#ifdef CONFIG_PM - .suspend =3D appletb_kbd_suspend, - .reset_resume =3D appletb_kbd_reset_resume, -#endif + .suspend =3D pm_ptr(appletb_kbd_suspend), + .reset_resume =3D pm_ptr(appletb_kbd_reset_resume), .driver.dev_groups =3D appletb_kbd_groups, }; module_hid_driver(appletb_kbd_hid_driver); --=20 2.52.0 From nobody Sun Feb 8 13:45:39 2026 Received: from mslow3.mail.gandi.net (mslow3.mail.gandi.net [217.70.178.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 94D68352931; Mon, 12 Jan 2026 10:57:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.178.249 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768215483; cv=none; b=mY85wU32vyyPU8n1k8pTL9QvAKfh2BLvla0DFo4RytI2q0l7bol3Q7XKcT71h76z4NHu7NcT0ri0oClS7sBw9sgIP90CpCA0IqZCVCRTpTKHxWZRCrsTSL67y2kSsq2RFyZBVZzk5WAhT5aQSFv4ZiwW/N3lWK77HG+9ls11psI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768215483; c=relaxed/simple; bh=5b0IXARvXrZBUAf7OhepjYRFh30+PF4EUQJtev3NLUA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KXOY1ZHEv1hN0xoxGDT92EbdMMMrMrm4ekEinyTIxKxFRPI8xLxaPV0VtH5x8dl0QDtvC5E5FX2LvcUP7PVAFOcLKf4Igwz9TRuTcmCISX637a2vmrYPeg7PlT2WCOZ27OnJQcK8ogdhOzlIshLWZ/7DVob/6swBk8+f3z13hBk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net; spf=pass smtp.mailfrom=hadess.net; arc=none smtp.client-ip=217.70.178.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hadess.net Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by mslow3.mail.gandi.net (Postfix) with ESMTP id 8EE95580C89; Mon, 12 Jan 2026 10:55:18 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id BF92A433A3; Mon, 12 Jan 2026 10:55:10 +0000 (UTC) From: Bastien Nocera To: linux-input@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Jiri Kosina , Benjamin Tissoires , Bastien Nocera Subject: [PATCH 03/12] HID: asus: Use pm_ptr instead of #ifdef CONFIG_PM Date: Mon, 12 Jan 2026 11:52:52 +0100 Message-ID: <20260112105500.3664834-4-hadess@hadess.net> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260112105500.3664834-1-hadess@hadess.net> References: <20260112105500.3664834-1-hadess@hadess.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: hadess@hadess.net X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduudejvdejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeeurghsthhivghnucfpohgtvghrrgcuoehhrgguvghssheshhgruggvshhsrdhnvghtqeenucggtffrrghtthgvrhhnpeevtefhleevjeffteekleehheeujeelhfdvheethefggefhkefgvdefhfegkeeiteenucfkphepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehinhgvthepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefpdhhvghlohepohhlihhmphhitgdpmhgrihhlfhhrohhmpehhrgguvghssheshhgruggvshhsrdhnvghtpdhqihgupeeuhfelvdetgeeffeetfedpmhhouggvpehsmhhtphhouhhtpdhnsggprhgtphhtthhopeehpdhrtghpthhtoheplhhinhhugidqihhnphhuthesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehjihhkohhssehkvghrnhgvl hdrohhrghdprhgtphhtthhopegsvghnjhgrmhhinhdrthhishhsohhirhgvshesrhgvughhrghtrdgtohhmpdhrtghpthhtohephhgruggvshhssehhrgguvghsshdrnhgvth Content-Type: text/plain; charset="utf-8" This increases build coverage and allows to drop an #ifdef. Signed-off-by: Bastien Nocera --- drivers/hid/hid-asus.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/hid/hid-asus.c b/drivers/hid/hid-asus.c index a444d41e53b6..1aaa40c2529a 100644 --- a/drivers/hid/hid-asus.c +++ b/drivers/hid/hid-asus.c @@ -1433,10 +1433,8 @@ static struct hid_driver asus_driver =3D { .remove =3D asus_remove, .input_mapping =3D asus_input_mapping, .input_configured =3D asus_input_configured, -#ifdef CONFIG_PM - .reset_resume =3D asus_reset_resume, - .resume =3D asus_resume, -#endif + .reset_resume =3D pm_ptr(asus_reset_resume), + .resume =3D pm_ptr(asus_resume), .event =3D asus_event, .raw_event =3D asus_raw_event }; --=20 2.52.0 From nobody Sun Feb 8 13:45:39 2026 Received: from mslow3.mail.gandi.net (mslow3.mail.gandi.net [217.70.178.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D6C2A352C44; Mon, 12 Jan 2026 10:57:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.178.249 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768215481; cv=none; b=PfO22Bwa/kfPcH4wDiW0J/wjHEVenjpyTCmNsmPSe9Eh/XASywgRs/nBY7keGFBx1SqWXraNDCXuuO+GoBJbFZegkvS0vXhQkZTY2WNuwazEcxg+MDF96pDtDD1xb9BLn0JFP6qqbN/viN2FHwQ8rP8YiekCjPbYVWKfcVtoqso= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768215481; c=relaxed/simple; bh=eb9ntfJ1E/pc37fMwPOG6rBCsfEBWLd7qGXeEYVQV1Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZpVwTJYbEs1geK0uC3WgxKG+exg3oQj7I+328Ie4gMHyxw/uKj8yOzOSi6Nyin1LNDwrVQlwynctY/m2hHXD9HY8UEjGebfyCFoKlqDScTqAvX37n3uK3/iMpqzIKBdAl3mxuuyWOf9xPg7AYESeW/yZ5gR2cFL2j65jMwhxdaU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net; spf=pass smtp.mailfrom=hadess.net; arc=none smtp.client-ip=217.70.178.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hadess.net Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::224]) by mslow3.mail.gandi.net (Postfix) with ESMTP id 5B5F5580C8A; Mon, 12 Jan 2026 10:55:19 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 6A77F43B57; Mon, 12 Jan 2026 10:55:11 +0000 (UTC) From: Bastien Nocera To: linux-input@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Jiri Kosina , Benjamin Tissoires , Bastien Nocera Subject: [PATCH 04/12] HID: lenovo: Use pm_ptr instead of #ifdef CONFIG_PM Date: Mon, 12 Jan 2026 11:52:53 +0100 Message-ID: <20260112105500.3664834-5-hadess@hadess.net> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260112105500.3664834-1-hadess@hadess.net> References: <20260112105500.3664834-1-hadess@hadess.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: hadess@hadess.net X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduudejvdejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeeurghsthhivghnucfpohgtvghrrgcuoehhrgguvghssheshhgruggvshhsrdhnvghtqeenucggtffrrghtthgvrhhnpeevtefhleevjeffteekleehheeujeelhfdvheethefggefhkefgvdefhfegkeeiteenucfkphepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehinhgvthepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefpdhhvghlohepohhlihhmphhitgdpmhgrihhlfhhrohhmpehhrgguvghssheshhgruggvshhsrdhnvghtpdhqihgupeeiteejjefhgeefueehjedpmhhouggvpehsmhhtphhouhhtpdhnsggprhgtphhtthhopeehpdhrtghpthhtoheplhhinhhugidqihhnphhuthesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehjihhkohhssehkvghrnhgvl hdrohhrghdprhgtphhtthhopegsvghnjhgrmhhinhdrthhishhsohhirhgvshesrhgvughhrghtrdgtohhmpdhrtghpthhtohephhgruggvshhssehhrgguvghsshdrnhgvth Content-Type: text/plain; charset="utf-8" This increases build coverage and allows to drop an #ifdef. Signed-off-by: Bastien Nocera --- drivers/hid/hid-lenovo.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/hid/hid-lenovo.c b/drivers/hid/hid-lenovo.c index 9cc3e029e9f6..14652478d989 100644 --- a/drivers/hid/hid-lenovo.c +++ b/drivers/hid/hid-lenovo.c @@ -1570,9 +1570,7 @@ static struct hid_driver lenovo_driver =3D { .raw_event =3D lenovo_raw_event, .event =3D lenovo_event, .report_fixup =3D lenovo_report_fixup, -#ifdef CONFIG_PM - .reset_resume =3D lenovo_reset_resume, -#endif + .reset_resume =3D pm_ptr(lenovo_reset_resume), }; module_hid_driver(lenovo_driver); =20 --=20 2.52.0 From nobody Sun Feb 8 13:45:39 2026 Received: from mslow3.mail.gandi.net (mslow3.mail.gandi.net [217.70.178.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 59D54352C4B; Mon, 12 Jan 2026 10:58:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.178.249 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768215488; cv=none; b=bzdkNLilKu35VhwCT34qnzeeVilfVLh921l7ijFDIzFvPUHZsLlvql/N3V9bNLWOdnU9re1OgJypnZAzh970vEC0yWuVpYkfKdah4RzOEMXIquGCeIrjMj61UFs/Mlv3Hem0t+mPD1whTPT/U/Ebqcpu6Md6hWcj2mgzITlz5O4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768215488; c=relaxed/simple; bh=7AlCBT60ag4z3Phw7rMvRYTAPntzw/ClOyMA3hcQHv0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mRyrksveiq2sk6fYv20RoY7EKCQbeJJnzwBvH2IQs+8PNcQiUZ2X/eRD9pwWCUSJsSU3gXf6kaQA2TqYJ+hDQlrzNKRKOnc0qRh8414bsj/QohfGO2dm2S+0KeIVsrVOZIzFowYLYCJqdlEUg7czW101fRo4BFd+5LFcfiS/910= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net; spf=pass smtp.mailfrom=hadess.net; arc=none smtp.client-ip=217.70.178.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hadess.net Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::224]) by mslow3.mail.gandi.net (Postfix) with ESMTP id 785BD580C90; Mon, 12 Jan 2026 10:55:19 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 1C1F843ADD; Mon, 12 Jan 2026 10:55:11 +0000 (UTC) From: Bastien Nocera To: linux-input@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Jiri Kosina , Benjamin Tissoires , Bastien Nocera Subject: [PATCH 05/12] HID: logitech-dj: Use pm_ptr instead of #ifdef CONFIG_PM Date: Mon, 12 Jan 2026 11:52:54 +0100 Message-ID: <20260112105500.3664834-6-hadess@hadess.net> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260112105500.3664834-1-hadess@hadess.net> References: <20260112105500.3664834-1-hadess@hadess.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: hadess@hadess.net X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduudejvdejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeeurghsthhivghnucfpohgtvghrrgcuoehhrgguvghssheshhgruggvshhsrdhnvghtqeenucggtffrrghtthgvrhhnpeevtefhleevjeffteekleehheeujeelhfdvheethefggefhkefgvdefhfegkeeiteenucfkphepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehinhgvthepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefpdhhvghlohepohhlihhmphhitgdpmhgrihhlfhhrohhmpehhrgguvghssheshhgruggvshhsrdhnvghtpdhqihgupeduveduhfekgeefteffffdpmhhouggvpehsmhhtphhouhhtpdhnsggprhgtphhtthhopeehpdhrtghpthhtoheplhhinhhugidqihhnphhuthesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehjihhkohhssehkvghrnhgvl hdrohhrghdprhgtphhtthhopegsvghnjhgrmhhinhdrthhishhsohhirhgvshesrhgvughhrghtrdgtohhmpdhrtghpthhtohephhgruggvshhssehhrgguvghsshdrnhgvth Content-Type: text/plain; charset="utf-8" This increases build coverage and allows to drop an #ifdef. Signed-off-by: Bastien Nocera --- drivers/hid/hid-logitech-dj.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/hid/hid-logitech-dj.c b/drivers/hid/hid-logitech-dj.c index cce54dd9884a..a3ed9624ca64 100644 --- a/drivers/hid/hid-logitech-dj.c +++ b/drivers/hid/hid-logitech-dj.c @@ -2044,9 +2044,7 @@ static struct hid_driver logi_djreceiver_driver =3D { .probe =3D logi_dj_probe, .remove =3D logi_dj_remove, .raw_event =3D logi_dj_raw_event, -#ifdef CONFIG_PM - .reset_resume =3D logi_dj_reset_resume, -#endif + .reset_resume =3D pm_ptr(logi_dj_reset_resume), }; =20 module_hid_driver(logi_djreceiver_driver); --=20 2.52.0 From nobody Sun Feb 8 13:45:39 2026 Received: from mslow3.mail.gandi.net (mslow3.mail.gandi.net [217.70.178.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 83E48352C53; Mon, 12 Jan 2026 10:58:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.178.249 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768215487; cv=none; b=fZrB2nG0RIVXcYDYrgbdYrHIf+rlabaGf5CNgoFvl//UypZaGeJyYefZjfGc8dkvTtiOppGkR5TZtGmgrj+T/uJktpJtAoZ56yWmfTha9QWccwaVF9Pl+BusrrUVYYIuVe3BiEKky/bHlYGT0kZPaEgM+2KnaEL+E1Jx06Q6JCk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768215487; c=relaxed/simple; bh=P2YbqftynhVQf+aFiKVoL6DaUfmwnuMZfNrdlYqELxU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Y2roMR+oDNrWdDJnVzniMQjoeljA5xhZDW1TiwpyHzBXuztFo0ayndU84m6TGe+20r/kwK3exb4DhtVGG2E7aWO63AmIEzp13xroK6+kEiB9JxVujdkTNRHnNwbmQXyNP+c29Z68JDjDKJbxv4JHmSBRpilWkQqWnZ8ytNv7zc8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net; spf=pass smtp.mailfrom=hadess.net; arc=none smtp.client-ip=217.70.178.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hadess.net Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by mslow3.mail.gandi.net (Postfix) with ESMTP id 9892D580C92; Mon, 12 Jan 2026 10:55:20 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id BDB7243B68; Mon, 12 Jan 2026 10:55:12 +0000 (UTC) From: Bastien Nocera To: linux-input@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Jiri Kosina , Benjamin Tissoires , Bastien Nocera Subject: [PATCH 06/12] HID: nintendo: Use pm_ptr instead of #ifdef CONFIG_PM Date: Mon, 12 Jan 2026 11:52:55 +0100 Message-ID: <20260112105500.3664834-7-hadess@hadess.net> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260112105500.3664834-1-hadess@hadess.net> References: <20260112105500.3664834-1-hadess@hadess.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: hadess@hadess.net X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduudejvdejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeeurghsthhivghnucfpohgtvghrrgcuoehhrgguvghssheshhgruggvshhsrdhnvghtqeenucggtffrrghtthgvrhhnpeevtefhleevjeffteekleehheeujeelhfdvheethefggefhkefgvdefhfegkeeiteenucfkphepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehinhgvthepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefpdhhvghlohepohhlihhmphhitgdpmhgrihhlfhhrohhmpehhrgguvghssheshhgruggvshhsrdhnvghtpdhqihgupeeuffeujedvgeefueeikedpmhhouggvpehsmhhtphhouhhtpdhnsggprhgtphhtthhopeehpdhrtghpthhtoheplhhinhhugidqihhnphhuthesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehjihhkohhssehkvghrnhgvl hdrohhrghdprhgtphhtthhopegsvghnjhgrmhhinhdrthhishhsohhirhgvshesrhgvughhrghtrdgtohhmpdhrtghpthhtohephhgruggvshhssehhrgguvghsshdrnhgvth Content-Type: text/plain; charset="utf-8" This increases build coverage and allows to drop an #ifdef. Signed-off-by: Bastien Nocera --- drivers/hid/hid-nintendo.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/hid/hid-nintendo.c b/drivers/hid/hid-nintendo.c index c2849a541f65..95b6df7b9b13 100644 --- a/drivers/hid/hid-nintendo.c +++ b/drivers/hid/hid-nintendo.c @@ -2826,11 +2826,8 @@ static struct hid_driver nintendo_hid_driver =3D { .probe =3D nintendo_hid_probe, .remove =3D nintendo_hid_remove, .raw_event =3D nintendo_hid_event, - -#ifdef CONFIG_PM - .resume =3D nintendo_hid_resume, - .suspend =3D nintendo_hid_suspend, -#endif + .resume =3D pm_ptr(nintendo_hid_resume), + .suspend =3D pm_ptr(nintendo_hid_suspend), }; static int __init nintendo_init(void) { --=20 2.52.0 From nobody Sun Feb 8 13:45:39 2026 Received: from mslow3.mail.gandi.net (mslow3.mail.gandi.net [217.70.178.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4F3ED352955; Mon, 12 Jan 2026 10:58:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.178.249 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768215487; cv=none; b=MPV135XfJCdHb1RDyulAMAqhCdVieGnsWYfuA9VxDKlM2dOUVaeweUFvKJS9jR1knuObM8l2cZgcoMPLU7SWZ2MEqQ7pF8DLJXiFeq+wdmYjOUTQofLAIs6IPMOl3WpVH6y6ZNuGG/4/88eNZ/K5Dps9hjSvGGWuDB68zhZKvbQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768215487; c=relaxed/simple; bh=mvHdwsWvJsughFL3KWuNZaRBXRaJ1ZqGg0rk341fTbc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gDEh9NGczVbNQXlSd1PFtFSfk0nwhcY6QyOYreVr23Qb4riKu6i/Oj2CXIbQsx1mekZfAHqGj6aaIdshXy9WD2puxEalCSJ1mhIcp+HFHipxFuTFpuFKNX2LKZismmDyVZlsh5mQ9vLwHv1PYZiLuDTelg9i6Gxo+1ynWXcatRI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net; spf=pass smtp.mailfrom=hadess.net; arc=none smtp.client-ip=217.70.178.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hadess.net Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by mslow3.mail.gandi.net (Postfix) with ESMTP id 87453580C93; Mon, 12 Jan 2026 10:55:21 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 61E8243FC1; Mon, 12 Jan 2026 10:55:13 +0000 (UTC) From: Bastien Nocera To: linux-input@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Jiri Kosina , Benjamin Tissoires , Bastien Nocera Subject: [PATCH 07/12] HID: picolcd_core: Use pm_ptr instead of #ifdef CONFIG_PM Date: Mon, 12 Jan 2026 11:52:56 +0100 Message-ID: <20260112105500.3664834-8-hadess@hadess.net> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260112105500.3664834-1-hadess@hadess.net> References: <20260112105500.3664834-1-hadess@hadess.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: hadess@hadess.net X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduudejvdejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeeurghsthhivghnucfpohgtvghrrgcuoehhrgguvghssheshhgruggvshhsrdhnvghtqeenucggtffrrghtthgvrhhnpeevtefhleevjeffteekleehheeujeelhfdvheethefggefhkefgvdefhfegkeeiteenucfkphepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehinhgvthepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefpdhhvghlohepohhlihhmphhitgdpmhgrihhlfhhrohhmpehhrgguvghssheshhgruggvshhsrdhnvghtpdhqihgupeeiudfgkedvgeefhfevuddpmhhouggvpehsmhhtphhouhhtpdhnsggprhgtphhtthhopeehpdhrtghpthhtoheplhhinhhugidqihhnphhuthesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehjihhkohhssehkvghrnhgvl hdrohhrghdprhgtphhtthhopegsvghnjhgrmhhinhdrthhishhsohhirhgvshesrhgvughhrghtrdgtohhmpdhrtghpthhtohephhgruggvshhssehhrgguvghsshdrnhgvth Content-Type: text/plain; charset="utf-8" This increases build coverage and allows to drop an #ifdef. Signed-off-by: Bastien Nocera --- drivers/hid/hid-picolcd_core.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/hid/hid-picolcd_core.c b/drivers/hid/hid-picolcd_core.c index 297103be3381..e579b3080ce5 100644 --- a/drivers/hid/hid-picolcd_core.c +++ b/drivers/hid/hid-picolcd_core.c @@ -648,11 +648,9 @@ static struct hid_driver picolcd_driver =3D { .probe =3D picolcd_probe, .remove =3D picolcd_remove, .raw_event =3D picolcd_raw_event, -#ifdef CONFIG_PM - .suspend =3D picolcd_suspend, - .resume =3D picolcd_resume, - .reset_resume =3D picolcd_reset_resume, -#endif + .suspend =3D pm_ptr(picolcd_suspend), + .resume =3D pm_ptr(picolcd_resume), + .reset_resume =3D pm_ptr(picolcd_reset_resume), }; module_hid_driver(picolcd_driver); =20 --=20 2.52.0 From nobody Sun Feb 8 13:45:39 2026 Received: from mslow3.mail.gandi.net (mslow3.mail.gandi.net [217.70.178.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 57256350A16; Mon, 12 Jan 2026 10:58:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.178.249 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768215488; cv=none; b=M0ZTJNW5VY0QhPenHGLxGtPCFpo6A9Dwkb3etAtrw+gaTZHqT2OTK+msVlrkWdis400vdXvcC2qXkONaUbBdyv9SPT6aJCz2J7rkrzbgplkuLU76MTvnr/5OTBGeX6C0grcJfJDxYb8RZCgtcBdS/2HQcLUzEgR371loA0sJrE8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768215488; c=relaxed/simple; bh=fi30VHeCcylWP4LPRvgy9rqy736MCa1UKqmK5nrZZOo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=melgIvkwznAkaqAolXWq85scIfFQXmO91oqiTJvRhqQ3yWBLruaccfAnlfZg3yn4KUbTU9rGUC3Ode630tS2ArSzjdUDuc/e3K7hbCLMCMA/Ly/xA7rFa67p0l933gHPIUpjlb5B7HOVNQUywNBQQU8wne9uctivAVJqfnIosPk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net; spf=pass smtp.mailfrom=hadess.net; arc=none smtp.client-ip=217.70.178.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hadess.net Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::224]) by mslow3.mail.gandi.net (Postfix) with ESMTP id 9883B580C98; Mon, 12 Jan 2026 10:55:21 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 0D26343B87; Mon, 12 Jan 2026 10:55:13 +0000 (UTC) From: Bastien Nocera To: linux-input@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Jiri Kosina , Benjamin Tissoires , Bastien Nocera Subject: [PATCH 08/12] HID: hid-sensor-hub: Use pm_ptr instead of #ifdef CONFIG_PM Date: Mon, 12 Jan 2026 11:52:57 +0100 Message-ID: <20260112105500.3664834-9-hadess@hadess.net> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260112105500.3664834-1-hadess@hadess.net> References: <20260112105500.3664834-1-hadess@hadess.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: hadess@hadess.net X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduudejvdejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeeurghsthhivghnucfpohgtvghrrgcuoehhrgguvghssheshhgruggvshhsrdhnvghtqeenucggtffrrghtthgvrhhnpeevtefhleevjeffteekleehheeujeelhfdvheethefggefhkefgvdefhfegkeeiteenucfkphepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehinhgvthepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefpdhhvghlohepohhlihhmphhitgdpmhgrihhlfhhrohhmpehhrgguvghssheshhgruggvshhsrdhnvghtpdhqihgupedtffdvieefgeefueekjedpmhhouggvpehsmhhtphhouhhtpdhnsggprhgtphhtthhopeehpdhrtghpthhtoheplhhinhhugidqihhnphhuthesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehjihhkohhssehkvghrnhgvl hdrohhrghdprhgtphhtthhopegsvghnjhgrmhhinhdrthhishhsohhirhgvshesrhgvughhrghtrdgtohhmpdhrtghpthhtohephhgruggvshhssehhrgguvghsshdrnhgvth Content-Type: text/plain; charset="utf-8" This increases build coverage and allows to drop an #ifdef. Signed-off-by: Bastien Nocera --- drivers/hid/hid-sensor-hub.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/hid/hid-sensor-hub.c b/drivers/hid/hid-sensor-hub.c index 4c94c03cb573..7618dec9c31e 100644 --- a/drivers/hid/hid-sensor-hub.c +++ b/drivers/hid/hid-sensor-hub.c @@ -772,11 +772,9 @@ static struct hid_driver sensor_hub_driver =3D { .remove =3D sensor_hub_remove, .raw_event =3D sensor_hub_raw_event, .report_fixup =3D sensor_hub_report_fixup, -#ifdef CONFIG_PM - .suspend =3D sensor_hub_suspend, - .resume =3D sensor_hub_resume, - .reset_resume =3D sensor_hub_reset_resume, -#endif + .suspend =3D pm_ptr(sensor_hub_suspend), + .resume =3D pm_ptr(sensor_hub_resume), + .reset_resume =3D pm_ptr(sensor_hub_reset_resume), }; module_hid_driver(sensor_hub_driver); =20 --=20 2.52.0 From nobody Sun Feb 8 13:45:39 2026 Received: from mslow3.mail.gandi.net (mslow3.mail.gandi.net [217.70.178.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 836A8350A1E; Mon, 12 Jan 2026 10:58:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.178.249 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768215487; cv=none; b=hDPpkDmvWuDcDnzpyPgHzkDKS6Ze71grVE2BTX6A4zYPvia74Cgc6VN5ClUfaT366n0CDpS744uOOp35fv6/j8r7A0muJnzETdypTKjMJA/NCnBKGO+NjBHWmjkbZnquovxZug+LV5uzT2zPGFTuSlXMF8oHtYguTwLuYYoZUMM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768215487; c=relaxed/simple; bh=ocETv9qDXBqnCa3O7eNQHgj43dxTEtKaXWYz/JczYC8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LJAY2HVbwKE/lg8rCGtyMUIkcPfcdYn0f282AVemo4BRrOH7aT+THGrPHt6EsREjqYnjlghv8hHx1gyI6fP6t65Whpb4Xdx/ANi9PqBj/km5qYxt4vVfU1XDGPI9Maw2mvk0ZJT1QlOqk63Wx0aywRFf75u/CWiS8Nljlbja1DE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net; spf=pass smtp.mailfrom=hadess.net; arc=none smtp.client-ip=217.70.178.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hadess.net Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::224]) by mslow3.mail.gandi.net (Postfix) with ESMTP id 8E24F580C99; Mon, 12 Jan 2026 10:55:22 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id B1E4443E8D; Mon, 12 Jan 2026 10:55:14 +0000 (UTC) From: Bastien Nocera To: linux-input@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Jiri Kosina , Benjamin Tissoires , Bastien Nocera Subject: [PATCH 09/12] HID: sony: Use pm_ptr instead of #ifdef CONFIG_PM Date: Mon, 12 Jan 2026 11:52:58 +0100 Message-ID: <20260112105500.3664834-10-hadess@hadess.net> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260112105500.3664834-1-hadess@hadess.net> References: <20260112105500.3664834-1-hadess@hadess.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: hadess@hadess.net X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduudejvdejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeeurghsthhivghnucfpohgtvghrrgcuoehhrgguvghssheshhgruggvshhsrdhnvghtqeenucggtffrrghtthgvrhhnpeevtefhleevjeffteekleehheeujeelhfdvheethefggefhkefgvdefhfegkeeiteenucfkphepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehinhgvthepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefpdhhvghlohepohhlihhmphhitgdpmhgrihhlfhhrohhmpehhrgguvghssheshhgruggvshhsrdhnvghtpdhqihgupeeuudfggeeggeefgfekffdpmhhouggvpehsmhhtphhouhhtpdhnsggprhgtphhtthhopeehpdhrtghpthhtoheplhhinhhugidqihhnphhuthesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehjihhkohhssehkvghrnhgvl hdrohhrghdprhgtphhtthhopegsvghnjhgrmhhinhdrthhishhsohhirhgvshesrhgvughhrghtrdgtohhmpdhrtghpthhtohephhgruggvshhssehhrgguvghsshdrnhgvth Content-Type: text/plain; charset="utf-8" This increases build coverage and allows to drop an #ifdef. Signed-off-by: Bastien Nocera --- drivers/hid/hid-sony.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c index b966e4044238..d94ece0448e9 100644 --- a/drivers/hid/hid-sony.c +++ b/drivers/hid/hid-sony.c @@ -2284,12 +2284,9 @@ static struct hid_driver sony_driver =3D { .remove =3D sony_remove, .report_fixup =3D sony_report_fixup, .raw_event =3D sony_raw_event, - -#ifdef CONFIG_PM - .suspend =3D sony_suspend, - .resume =3D sony_resume, - .reset_resume =3D sony_resume, -#endif + .suspend =3D pm_ptr(sony_suspend), + .resume =3D pm_ptr(sony_resume), + .reset_resume =3D pm_ptr(sony_resume), }; =20 static int __init sony_init(void) --=20 2.52.0 From nobody Sun Feb 8 13:45:39 2026 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DA5E434E760; Mon, 12 Jan 2026 10:55:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.196 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768215323; cv=none; b=gwlykHzj2zO85xE1lY+BiMCve2lcbMEmsTD0+JMqm+BcHDFh2fE4I4IzBCjTO4T72PKlpCWMTfIWxsfesOeCO11503HEWj+1x0x3862sVHATYW9J2FReaOOdSOsB7af9mCezJuii+jA9zfQNKyw22oEAize0gOT/Nt8fkEZAzOM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768215323; c=relaxed/simple; bh=t3d4RYD0w9jn8KxIV3YfPHt2FTYoWCR2KNfC9jaVOIo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LsXPi8yrjGZgn4bHOJRE8DPqq2icfbDhxCc+FL99wlyjqPk5MaN8cHNJPzjk0ilnVmNAvdzXMMWLVZAymyBCnORX3/IBJyiuuml66ccfyormRUf/GGZ8eMPKQggRfCOpedidKGr/9ZksHk3o+nX5mZ3GHt6iHCDQt1cDngeyl+o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net; spf=pass smtp.mailfrom=hadess.net; arc=none smtp.client-ip=217.70.183.196 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hadess.net Received: by mail.gandi.net (Postfix) with ESMTPSA id 5E0FF43FC3; Mon, 12 Jan 2026 10:55:15 +0000 (UTC) From: Bastien Nocera To: linux-input@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Jiri Kosina , Benjamin Tissoires , Bastien Nocera Subject: [PATCH 10/12] HID: uclogic: Use pm_ptr instead of #ifdef CONFIG_PM Date: Mon, 12 Jan 2026 11:52:59 +0100 Message-ID: <20260112105500.3664834-11-hadess@hadess.net> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260112105500.3664834-1-hadess@hadess.net> References: <20260112105500.3664834-1-hadess@hadess.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: hadess@hadess.net X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduudejvdejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeeurghsthhivghnucfpohgtvghrrgcuoehhrgguvghssheshhgruggvshhsrdhnvghtqeenucggtffrrghtthgvrhhnpeevtefhleevjeffteekleehheeujeelhfdvheethefggefhkefgvdefhfegkeeiteenucfkphepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehinhgvthepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefpdhhvghlohepohhlihhmphhitgdpmhgrihhlfhhrohhmpehhrgguvghssheshhgruggvshhsrdhnvghtpdhqihgupeehgfdthffhgeefhfevfedpmhhouggvpehsmhhtphhouhhtpdhnsggprhgtphhtthhopeehpdhrtghpthhtoheplhhinhhugidqihhnphhuthesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehjihhkohhssehkvghrnhgvl hdrohhrghdprhgtphhtthhopegsvghnjhgrmhhinhdrthhishhsohhirhgvshesrhgvughhrghtrdgtohhmpdhrtghpthhtohephhgruggvshhssehhrgguvghsshdrnhgvth Content-Type: text/plain; charset="utf-8" This increases build coverage and allows to drop an #ifdef. Signed-off-by: Bastien Nocera --- drivers/hid/hid-uclogic-core.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/hid/hid-uclogic-core.c b/drivers/hid/hid-uclogic-core.c index 34fb03ae8ee2..a73a07b0b238 100644 --- a/drivers/hid/hid-uclogic-core.c +++ b/drivers/hid/hid-uclogic-core.c @@ -617,10 +617,8 @@ static struct hid_driver uclogic_driver =3D { .raw_event =3D uclogic_raw_event, .input_mapping =3D uclogic_input_mapping, .input_configured =3D uclogic_input_configured, -#ifdef CONFIG_PM - .resume =3D uclogic_resume, - .reset_resume =3D uclogic_resume, -#endif + .resume =3D pm_ptr(uclogic_resume), + .reset_resume =3D pm_ptr(uclogic_resume), }; module_hid_driver(uclogic_driver); =20 --=20 2.52.0 From nobody Sun Feb 8 13:45:39 2026 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E10B234F479; Mon, 12 Jan 2026 10:55:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.196 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768215324; cv=none; b=Dqb5il4kQyrMYnycaoaZuNiObb4crp4k9I3OO1s/a20IIvGdekWAfv42Bh1qBdXiyjnT7U3UPx2Bna0vcvxQaZX4mhr0iN9Pwz4+vmtX3ad4F+mSw9ZMnDK/B4eCmSfqc8IzQSG3VGkX+YDCQW2rTbPFhpVsLToyJZDkYtk4n5c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768215324; c=relaxed/simple; bh=YWh9pcYctDAs2duc7Axo1IZoSXTuTmP/BWbtu0OyHqU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SJIcvcsuN5FpH7ZGgYDdNVO9LpxnCT4flMDFpsgU+grsaOnZksr6H8keYlhWZJbkLgcAPlkCTLqJDSYoKgb9xhLGADGbOArDeRI983DypN3U7v1T0DtFLu7l1UD6L3AZsJBJGeW9Hq5q4KceyJO/Q5LZqkr/a+L+l43JgNC44oA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net; spf=pass smtp.mailfrom=hadess.net; arc=none smtp.client-ip=217.70.183.196 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hadess.net Received: by mail.gandi.net (Postfix) with ESMTPSA id 0697743FC5; Mon, 12 Jan 2026 10:55:15 +0000 (UTC) From: Bastien Nocera To: linux-input@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Jiri Kosina , Benjamin Tissoires , Bastien Nocera Subject: [PATCH 11/12] HID: wacom: Use pm_ptr instead of #ifdef CONFIG_PM Date: Mon, 12 Jan 2026 11:53:00 +0100 Message-ID: <20260112105500.3664834-12-hadess@hadess.net> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260112105500.3664834-1-hadess@hadess.net> References: <20260112105500.3664834-1-hadess@hadess.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: hadess@hadess.net X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduudejvdejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeeurghsthhivghnucfpohgtvghrrgcuoehhrgguvghssheshhgruggvshhsrdhnvghtqeenucggtffrrghtthgvrhhnpeevtefhleevjeffteekleehheeujeelhfdvheethefggefhkefgvdefhfegkeeiteenucfkphepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefnecuvehluhhsthgvrhfuihiivgepuddtnecurfgrrhgrmhepihhnvghtpedvrgdtudemvgefgeemvggtjeefmegtfhdvtdemsggrgeefmegrieejieemtgdvugefmeejrgehfedphhgvlhhopeholhhimhhpihgtpdhmrghilhhfrhhomhephhgruggvshhssehhrgguvghsshdrnhgvthdpqhhiugeptdeileejjeegfefhveehpdhmohguvgepshhmthhpohhuthdpnhgspghrtghpthhtohephedprhgtphhtthhopehlihhnuhigqdhinhhpuhhtsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohepjhhikhhosheskhgvrhhnv ghlrdhorhhgpdhrtghpthhtohepsggvnhhjrghmihhnrdhtihhsshhoihhrvghssehrvgguhhgrthdrtghomhdprhgtphhtthhopehhrgguvghssheshhgruggvshhsrdhnvght Content-Type: text/plain; charset="utf-8" This increases build coverage and allows to drop an #ifdef. Signed-off-by: Bastien Nocera --- drivers/hid/wacom_sys.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/hid/wacom_sys.c b/drivers/hid/wacom_sys.c index 9a57504e51a1..fbb07c71f0ba 100644 --- a/drivers/hid/wacom_sys.c +++ b/drivers/hid/wacom_sys.c @@ -2949,10 +2949,8 @@ static struct hid_driver wacom_driver =3D { .probe =3D wacom_probe, .remove =3D wacom_remove, .report =3D wacom_wac_report, -#ifdef CONFIG_PM - .resume =3D wacom_resume, - .reset_resume =3D wacom_reset_resume, -#endif + .resume =3D pm_ptr(wacom_resume), + .reset_resume =3D pm_ptr(wacom_reset_resume), .raw_event =3D wacom_raw_event, }; module_hid_driver(wacom_driver); --=20 2.52.0 From nobody Sun Feb 8 13:45:39 2026 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4F34034FF5B; Mon, 12 Jan 2026 10:55:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.196 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768215324; cv=none; b=Oy44T7Jbf0Rp0xUTzOhGi8WPI5fKbRxm2eUdUVEUoXmstDlzcC33TP2yminjwMP48UAsSw34+CuC58VgJQn8cOUzeWi+ynq7EMA32RFvEjQz8NEdQGIazTCg8JW9/123gH0I1O545fDE/atrY5FX7aLXfl49KLvv5ND2AlsWvL0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768215324; c=relaxed/simple; bh=NPS4h5UvRAYFBw42aePxoXZazbahXZQnvthTWw47lPM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aSNrruqorRIIIm8MmZ0jfF6D6CXUO/VII0V7oWUy8Fp86C6dRVdyj4xs/7d30M5rKyhK++s6fhybJAfAGHdGGB0lW4zHcq0jhcBzkotHAX+cI5fiIdRaod+6vlcy8+AAOWFJ4ZdQFACs/+KpQVAfghHl9n+6HSpxJWYyfIHjiys= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net; spf=pass smtp.mailfrom=hadess.net; arc=none smtp.client-ip=217.70.183.196 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hadess.net Received: by mail.gandi.net (Postfix) with ESMTPSA id 9FD6243E8C; Mon, 12 Jan 2026 10:55:16 +0000 (UTC) From: Bastien Nocera To: linux-input@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Jiri Kosina , Benjamin Tissoires , Bastien Nocera Subject: [PATCH 12/12] HID: surface: Use pm_ptr_sleep instead of #ifdef CONFIG_PM_SLEEP Date: Mon, 12 Jan 2026 11:53:01 +0100 Message-ID: <20260112105500.3664834-13-hadess@hadess.net> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260112105500.3664834-1-hadess@hadess.net> References: <20260112105500.3664834-1-hadess@hadess.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: hadess@hadess.net X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduudejvdejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeeurghsthhivghnucfpohgtvghrrgcuoehhrgguvghssheshhgruggvshhsrdhnvghtqeenucggtffrrghtthgvrhhnpeevtefhleevjeffteekleehheeujeelhfdvheethefggefhkefgvdefhfegkeeiteenucfkphepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefnecuvehluhhsthgvrhfuihiivgepuddtnecurfgrrhgrmhepihhnvghtpedvrgdtudemvgefgeemvggtjeefmegtfhdvtdemsggrgeefmegrieejieemtgdvugefmeejrgehfedphhgvlhhopeholhhimhhpihgtpdhmrghilhhfrhhomhephhgruggvshhssehhrgguvghsshdrnhgvthdpqhhiugeplefhffeivdegfefgkeevpdhmohguvgepshhmthhpohhuthdpnhgspghrtghpthhtohephedprhgtphhtthhopehlihhnuhigqdhinhhpuhhtsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohepjhhikhhosheskhgvrhhnv ghlrdhorhhgpdhrtghpthhtohepsggvnhhjrghmihhnrdhtihhsshhoihhrvghssehrvgguhhgrthdrtghomhdprhgtphhtthhopehhrgguvghssheshhgruggvshhsrdhnvght Content-Type: text/plain; charset="utf-8" This increases build coverage and allows to drop an #ifdef. Signed-off-by: Bastien Nocera --- drivers/hid/surface-hid/surface_hid.c | 2 +- drivers/hid/surface-hid/surface_hid_core.c | 5 ----- drivers/hid/surface-hid/surface_kbd.c | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/hid/surface-hid/surface_hid.c b/drivers/hid/surface-hi= d/surface_hid.c index eae47e0d95ed..21904612b5ad 100644 --- a/drivers/hid/surface-hid/surface_hid.c +++ b/drivers/hid/surface-hid/surface_hid.c @@ -241,7 +241,7 @@ static struct ssam_device_driver surface_hid_driver =3D= { .match_table =3D surface_hid_match, .driver =3D { .name =3D "surface_hid", - .pm =3D &surface_hid_pm_ops, + .pm =3D pm_ptr_sleep(&surface_hid_pm_ops), .probe_type =3D PROBE_PREFER_ASYNCHRONOUS, }, }; diff --git a/drivers/hid/surface-hid/surface_hid_core.c b/drivers/hid/surfa= ce-hid/surface_hid_core.c index 6690c24f28f0..33fe15fbcf6c 100644 --- a/drivers/hid/surface-hid/surface_hid_core.c +++ b/drivers/hid/surface-hid/surface_hid_core.c @@ -281,11 +281,6 @@ const struct dev_pm_ops surface_hid_pm_ops =3D { }; EXPORT_SYMBOL_GPL(surface_hid_pm_ops); =20 -#else /* CONFIG_PM_SLEEP */ - -const struct dev_pm_ops surface_hid_pm_ops =3D { }; -EXPORT_SYMBOL_GPL(surface_hid_pm_ops); - #endif /* CONFIG_PM_SLEEP */ =20 MODULE_AUTHOR("Maximilian Luz "); diff --git a/drivers/hid/surface-hid/surface_kbd.c b/drivers/hid/surface-hi= d/surface_kbd.c index 0be01b5e7425..6ab6870f10e8 100644 --- a/drivers/hid/surface-hid/surface_kbd.c +++ b/drivers/hid/surface-hid/surface_kbd.c @@ -288,7 +288,7 @@ static struct platform_driver surface_kbd_driver =3D { .driver =3D { .name =3D "surface_keyboard", .acpi_match_table =3D surface_kbd_match, - .pm =3D &surface_hid_pm_ops, + .pm =3D pm_ptr_sleep(&surface_hid_pm_ops), .probe_type =3D PROBE_PREFER_ASYNCHRONOUS, }, }; --=20 2.52.0