From nobody Sun Feb 8 04:12:47 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 DEC473815F2; Tue, 13 Jan 2026 09:26:08 +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=1768296375; cv=none; b=IlRDltD20MEk9DI5bckikIB9VF1+A+Z4n5zqqwm3CW2TLzBCuNNSRj2EP8+v0EggXIiE0LCeNN+cde8xd3nn7NbdMpuG8622DsXRQttM6l444tHKQ+0uyJmdhQ4xyeMILja1qNsrEORjnlSS/eVOtmV0nvnL99r0psFYmKzQ+Ms= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768296375; c=relaxed/simple; bh=ADw8PLqiVLiw+d76UkH/OwzQtELTsZ0WkSXhDv4AwQY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=e5Lfg1HU3AzP6TwwibL5bPCcjPNfcCSjlut6+12dGX++ZO2QhgRtNi4QGuYQkYjdo627WWssKDdN0XuRIjo6UEI0Qsgg1DxufUyjLFsg8ibrXuER4XY3WBcOhOTtmgr/LuxjrD73m/6E5QJQM8TI9IayCoyoz9BQEImxfNHM3To= 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 relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::228]) by mslow3.mail.gandi.net (Postfix) with ESMTP id 6BEE0580E47; Tue, 13 Jan 2026 09:26:03 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 3644F4337F; Tue, 13 Jan 2026 09:25:56 +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 v2 01/11] HID: hid-alps: Use pm_ptr instead of #ifdef CONFIG_PM Date: Tue, 13 Jan 2026 10:24:49 +0100 Message-ID: <20260113092546.265734-2-hadess@hadess.net> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260113092546.265734-1-hadess@hadess.net> References: <20260113092546.265734-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-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduudelleehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeeurghsthhivghnucfpohgtvghrrgcuoehhrgguvghssheshhgruggvshhsrdhnvghtqeenucggtffrrghtthgvrhhnpeevtefhleevjeffteekleehheeujeelhfdvheethefggefhkefgvdefhfegkeeiteenucfkphepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefpdhhvghlohepohhlihhmphhitgdpmhgrihhlfhhrohhmpehhrgguvghssheshhgruggvshhsrdhnvghtpdhqihgupeefieeggefhgeeffeejhfdpmhhouggvpehsmhhtphhouhhtpdhnsggprhgtphhtthhopeehpdhrtghpthhtoheplhhinhhugidqihhnphhuthesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehjihhkohhssehkvghrnhgvl hdrohhrghdprhgtphhtthhopegsvghnjhgrmhhinhdrthhishhsohhirhgvshesrhgvughhrghtrdgtohhmpdhrtghpthhtohephhgruggvshhssehhrgguvghsshdrnhgvth X-GND-State: clean X-GND-Score: -100 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 04:12:47 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 99BF9389DEE; Tue, 13 Jan 2026 09:26:09 +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=1768296376; cv=none; b=sMit0TnA/H2oyczK6AkecyWjWZUXtl4T5w4ckH3l1cLA/dg2pTPo3qZYF8Rq5ZuFT8mVWCnZh+W+hGpObxOnsguiz7aJQ8er0RQkQmuwdeDUnl3GiOgreGcjVsjo2Jha6edNuxQ1mG+xos9PmjmtageNt/afRpad3iLhgqRqym0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768296376; c=relaxed/simple; bh=6lXNvJ81Dwr/f+D756gI5rYghZhatj+5Pb+6HldUvoA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HJ0jvzqmge0YdHxJMqIO0UgEcTkJL/utS51P77yXFAnc/vz83WEDl3/uD+wqJIhzE09T9ySuaKboIJzTLec9a0i4osNtKQRe6LCNQ1Whlgf4gw0g+LbE+kq1sXPI5XRA1LPMRtpqT1PrsYG7YJFkJfBQjMbhscLDHIhHYzQac8g= 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 relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by mslow3.mail.gandi.net (Postfix) with ESMTP id 86014580EEC; Tue, 13 Jan 2026 09:26:04 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id D051043388; Tue, 13 Jan 2026 09:25:56 +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 v2 02/11] HID: appletb-kbd: Use pm_ptr instead of #ifdef CONFIG_PM Date: Tue, 13 Jan 2026 10:24:50 +0100 Message-ID: <20260113092546.265734-3-hadess@hadess.net> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260113092546.265734-1-hadess@hadess.net> References: <20260113092546.265734-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-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduudelleehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeeurghsthhivghnucfpohgtvghrrgcuoehhrgguvghssheshhgruggvshhsrdhnvghtqeenucggtffrrghtthgvrhhnpeevtefhleevjeffteekleehheeujeelhfdvheethefggefhkefgvdefhfegkeeiteenucfkphepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefpdhhvghlohepohhlihhmphhitgdpmhgrihhlfhhrohhmpehhrgguvghssheshhgruggvshhsrdhnvghtpdhqihgupefftdehuddtgeeffeekkedpmhhouggvpehsmhhtphhouhhtpdhnsggprhgtphhtthhopeehpdhrtghpthhtoheplhhinhhugidqihhnphhuthesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehjihhkohhssehkvghrnhgvl hdrohhrghdprhgtphhtthhopegsvghnjhgrmhhinhdrthhishhsohhirhgvshesrhgvughhrghtrdgtohhmpdhrtghpthhtohephhgruggvshhssehhrgguvghsshdrnhgvth X-GND-State: clean X-GND-Score: -100 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 | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/hid/hid-appletb-kbd.c b/drivers/hid/hid-appletb-kbd.c index b00687e67ce8..a1db3b3d0667 100644 --- a/drivers/hid/hid-appletb-kbd.c +++ b/drivers/hid/hid-appletb-kbd.c @@ -466,7 +466,6 @@ static void appletb_kbd_remove(struct hid_device *hdev) hid_hw_stop(hdev); } =20 -#ifdef CONFIG_PM static int appletb_kbd_suspend(struct hid_device *hdev, pm_message_t msg) { struct appletb_kbd *kbd =3D hid_get_drvdata(hdev); @@ -485,7 +484,6 @@ static int appletb_kbd_reset_resume(struct hid_device *= hdev) =20 return 0; } -#endif =20 static const struct hid_device_id appletb_kbd_hid_ids[] =3D { /* MacBook Pro's 2018, 2019, with T2 chip: iBridge Display */ @@ -501,10 +499,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 04:12:47 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 EAE3E3876B6; Tue, 13 Jan 2026 09:26:10 +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=1768296377; cv=none; b=k8fVDacCkA+iP63CxKO4qttyqyYTm9LHLhbb1cscRsYpgdZ4ERX5PHxYwHgbOL2zQWBJ41cBj9q4SyjStL7BsysJ6U1Fe4lUqL44jFBh4Ksw+8+hXmDGUGFHUm46NpPAWL0zmfBTAA7CFMvLnhIWKZ6MqgJ1hhQ2ZaJkWOFYK4Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768296377; c=relaxed/simple; bh=DmpAMJ+x+JimFZCuPTeyENeB0njvYGsJPPzOvVwn6wE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Wf/APl14q0cWyzYghpgzpF5O6Hexz9xuL2WnvZTQz72TFibUbF//ArQXC886kuzPu6a3QatiV92d6o0TueKJx6OkLWZAVQKjfOzN3LDKe2rumLhiarEuWBqHN/O+HjP8GRwM18O7XFFAE1fCLVUSx/jy9MryO6V37Z2o5cP9PVo= 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 relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::228]) by mslow3.mail.gandi.net (Postfix) with ESMTP id 81090580EF5; Tue, 13 Jan 2026 09:26:05 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 81C4B43378; Tue, 13 Jan 2026 09:25:57 +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 v2 03/11] HID: asus: Use pm_ptr instead of #ifdef CONFIG_PM Date: Tue, 13 Jan 2026 10:24:51 +0100 Message-ID: <20260113092546.265734-4-hadess@hadess.net> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260113092546.265734-1-hadess@hadess.net> References: <20260113092546.265734-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-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduudelleehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeeurghsthhivghnucfpohgtvghrrgcuoehhrgguvghssheshhgruggvshhsrdhnvghtqeenucggtffrrghtthgvrhhnpeevtefhleevjeffteekleehheeujeelhfdvheethefggefhkefgvdefhfegkeeiteenucfkphepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefpdhhvghlohepohhlihhmphhitgdpmhgrihhlfhhrohhmpehhrgguvghssheshhgruggvshhsrdhnvghtpdhqihgupeekudevgeeugeeffeejkedpmhhouggvpehsmhhtphhouhhtpdhnsggprhgtphhtthhopeehpdhrtghpthhtoheplhhinhhugidqihhnphhuthesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehjihhkohhssehkvghrnhgvl hdrohhrghdprhgtphhtthhopegsvghnjhgrmhhinhdrthhishhsohhirhgvshesrhgvughhrghtrdgtohhmpdhrtghpthhtohephhgruggvshhssehhrgguvghsshdrnhgvth X-GND-State: clean X-GND-Score: -100 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 472bca54642b..0a4acdcb6386 100644 --- a/drivers/hid/hid-asus.c +++ b/drivers/hid/hid-asus.c @@ -1434,10 +1434,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 04:12:47 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 4306C38B9B5; Tue, 13 Jan 2026 09:26:18 +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=1768296388; cv=none; b=ZV98EuVvZvRQSGl/rEyzVWHHnxB7dSFW3MQb0np7+uEwK1dl4DCMpRvx+YIDRmKz8XAITrOJ4SrF4eagFVyzUMNSQKm2DxS5Gr+1d+/BQnCMO3UJTbJ9k1VCr1qzxyXxSXmOGIo0gSYjzu9ZL0EUseLe51YurL9n718xmqQgvz8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768296388; c=relaxed/simple; bh=cRt9Dr4ZPOF/BfXmvbKbMpEi0hYyRHbTHaOdieg4qa0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dD7GAjfCCzMvYYZ5Ufp5bqSm9Q+RpAf0XqaoWp2exvDTZs8CpBiEkPFwbF7dPYII4h0HEjoyglh5b8+QxQL+400jzIrlb3ZG0xhk0E2sug1xne3Ue1BeqsSjPwQQmVPZwfA8++KjkZJb9bNScLyI+6n6Nf/TPPeiSRQHV8uQjlk= 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 relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::228]) by mslow3.mail.gandi.net (Postfix) with ESMTP id 862C8580F0F; Tue, 13 Jan 2026 09:26:06 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 41C534337A; Tue, 13 Jan 2026 09:25:58 +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 v2 04/11] HID: lenovo: Use pm_ptr instead of #ifdef CONFIG_PM Date: Tue, 13 Jan 2026 10:24:52 +0100 Message-ID: <20260113092546.265734-5-hadess@hadess.net> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260113092546.265734-1-hadess@hadess.net> References: <20260113092546.265734-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-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduudelleehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeeurghsthhivghnucfpohgtvghrrgcuoehhrgguvghssheshhgruggvshhsrdhnvghtqeenucggtffrrghtthgvrhhnpeevtefhleevjeffteekleehheeujeelhfdvheethefggefhkefgvdefhfegkeeiteenucfkphepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefpdhhvghlohepohhlihhmphhitgdpmhgrihhlfhhrohhmpehhrgguvghssheshhgruggvshhsrdhnvghtpdhqihgupeegudevheefgeeffeejtedpmhhouggvpehsmhhtphhouhhtpdhnsggprhgtphhtthhopeehpdhrtghpthhtoheplhhinhhugidqihhnphhuthesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehjihhkohhssehkvghrnhgvl hdrohhrghdprhgtphhtthhopegsvghnjhgrmhhinhdrthhishhsohhirhgvshesrhgvughhrghtrdgtohhmpdhrtghpthhtohephhgruggvshhssehhrgguvghsshdrnhgvth X-GND-State: clean X-GND-Score: -100 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 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/hid/hid-lenovo.c b/drivers/hid/hid-lenovo.c index 9cc3e029e9f6..a6b73e03c16b 100644 --- a/drivers/hid/hid-lenovo.c +++ b/drivers/hid/hid-lenovo.c @@ -1422,7 +1422,6 @@ static int lenovo_probe(struct hid_device *hdev, return ret; } =20 -#ifdef CONFIG_PM static int lenovo_reset_resume(struct hid_device *hdev) { switch (hdev->product) { @@ -1438,7 +1437,6 @@ static int lenovo_reset_resume(struct hid_device *hde= v) =20 return 0; } -#endif =20 static void lenovo_remove_tpkbd(struct hid_device *hdev) { @@ -1570,9 +1568,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 04:12:47 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 00E523876DA; Tue, 13 Jan 2026 09:26:12 +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=1768296380; cv=none; b=pn8/3LtdtuZ//WdsKtv1j0AU1TSF6KDpuZdqFqRXnt4c7mcWgnCK6nqVGompk38YSHnrg471VBYY7TO0bdS+cWevQtUo7hsYzh3wlu3nB5/tdkXZKn3YBqt9zMpzonNPLrB75MVsxQ6pPtsjuHZ2B0dV77LP0Qgcl3EXLQAIVrA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768296380; c=relaxed/simple; bh=DIR09SFfhs8NcRNUTX8Ff4AEkRzIvFXIf8lEXW9rE3s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hv7Gtw6qqeNkXgLi3isPVhRGKkEqunLQaEE+XHzduSugyVt0jaWKb5HXEvcxourgPuFRvKWviPbeuZVGdWLK0lnB6qZ+lvY2wrMT7IbQ6m2FJAHBYr7eHPJPBogjPNCkZqijkxv3faIbrY8HizCWkBks+Xdbv7c8MQOqJVGF7HI= 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 relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by mslow3.mail.gandi.net (Postfix) with ESMTP id 5E200580F08; Tue, 13 Jan 2026 09:26:06 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 0960A43392; Tue, 13 Jan 2026 09:25:58 +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 v2 05/11] HID: logitech-dj: Use pm_ptr instead of #ifdef CONFIG_PM Date: Tue, 13 Jan 2026 10:24:53 +0100 Message-ID: <20260113092546.265734-6-hadess@hadess.net> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260113092546.265734-1-hadess@hadess.net> References: <20260113092546.265734-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-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduudelleehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeeurghsthhivghnucfpohgtvghrrgcuoehhrgguvghssheshhgruggvshhsrdhnvghtqeenucggtffrrghtthgvrhhnpeevtefhleevjeffteekleehheeujeelhfdvheethefggefhkefgvdefhfegkeeiteenucfkphepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefpdhhvghlohepohhlihhmphhitgdpmhgrihhlfhhrohhmpehhrgguvghssheshhgruggvshhsrdhnvghtpdhqihgupedtleeitdetgeeffeelvddpmhhouggvpehsmhhtphhouhhtpdhnsggprhgtphhtthhopeehpdhrtghpthhtoheplhhinhhugidqihhnphhuthesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehjihhkohhssehkvghrnhgvl hdrohhrghdprhgtphhtthhopegsvghnjhgrmhhinhdrthhishhsohhirhgvshesrhgvughhrghtrdgtohhmpdhrtghpthhtohephhgruggvshhssehhrgguvghsshdrnhgvth X-GND-State: clean X-GND-Score: -100 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 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/hid/hid-logitech-dj.c b/drivers/hid/hid-logitech-dj.c index 44b716697510..3d8821d5b2d2 100644 --- a/drivers/hid/hid-logitech-dj.c +++ b/drivers/hid/hid-logitech-dj.c @@ -1983,7 +1983,6 @@ static int logi_dj_probe(struct hid_device *hdev, return retval; } =20 -#ifdef CONFIG_PM static int logi_dj_reset_resume(struct hid_device *hdev) { struct dj_receiver_dev *djrcv_dev =3D hid_get_drvdata(hdev); @@ -1994,7 +1993,6 @@ static int logi_dj_reset_resume(struct hid_device *hd= ev) logi_dj_recv_switch_to_dj_mode(djrcv_dev, 0); return 0; } -#endif =20 static void logi_dj_remove(struct hid_device *hdev) { @@ -2150,9 +2148,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 04:12:47 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 156DC34575A; Tue, 13 Jan 2026 09:26:15 +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=1768296381; cv=none; b=TileVnMkLujf3dnGcIeFG0x0H7VI4p1U5V2hRiWs02E4XvzwP6dOiAkQCgULni4PGuCvG8BkxEomZlqoDQYyENxrVVlTLn4Q8/Juvo9fDBoz4kPaJfcm/0fP67BqJ4p9MWrW5KCHEfUVjuDVHCOVMSn7UhAeMdP75vDrQzV49ro= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768296381; c=relaxed/simple; bh=oTnqWe+/dcJEpnq2L5dMa15m0zfxhkVVoTpvJxcHD0w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Imfta0a5JLIkmX71xjx/b5QepnbIfBIdMQW4H4IH7HQzJ5mWI1EDwtzuQse6nMVpX13KBeIHi5v4fLDnTtdLk440kHwtAi0fJq6AKxf8JD2gTcsPtlWoDIFInCqayIhizxUJdVN4Ufy9Q+pLJwGCfIAsWJ3s0bytIyTQpTxcrMM= 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 relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::228]) by mslow3.mail.gandi.net (Postfix) with ESMTP id 7D47F580EE0; Tue, 13 Jan 2026 09:26:07 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id B8FC043379; Tue, 13 Jan 2026 09:25:59 +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 v2 06/11] HID: nintendo: Use pm_ptr instead of #ifdef CONFIG_PM Date: Tue, 13 Jan 2026 10:24:54 +0100 Message-ID: <20260113092546.265734-7-hadess@hadess.net> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260113092546.265734-1-hadess@hadess.net> References: <20260113092546.265734-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-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduudelleehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeeurghsthhivghnucfpohgtvghrrgcuoehhrgguvghssheshhgruggvshhsrdhnvghtqeenucggtffrrghtthgvrhhnpeevtefhleevjeffteekleehheeujeelhfdvheethefggefhkefgvdefhfegkeeiteenucfkphepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefpdhhvghlohepohhlihhmphhitgdpmhgrihhlfhhrohhmpehhrgguvghssheshhgruggvshhsrdhnvghtpdhqihgupeeukefhvedtgeeffeejledpmhhouggvpehsmhhtphhouhhtpdhnsggprhgtphhtthhopeehpdhrtghpthhtoheplhhinhhugidqihhnphhuthesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehjihhkohhssehkvghrnhgvl hdrohhrghdprhgtphhtthhopegsvghnjhgrmhhinhdrthhishhsohhirhgvshesrhgvughhrghtrdgtohhmpdhrtghpthhtohephhgruggvshhssehhrgguvghsshdrnhgvth X-GND-State: clean X-GND-Score: -100 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 | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/hid/hid-nintendo.c b/drivers/hid/hid-nintendo.c index 7ac9217d9096..29008c2cc530 100644 --- a/drivers/hid/hid-nintendo.c +++ b/drivers/hid/hid-nintendo.c @@ -2748,8 +2748,6 @@ static void nintendo_hid_remove(struct hid_device *hd= ev) hid_hw_stop(hdev); } =20 -#ifdef CONFIG_PM - static int nintendo_hid_resume(struct hid_device *hdev) { struct joycon_ctlr *ctlr =3D hid_get_drvdata(hdev); @@ -2792,8 +2790,6 @@ static int nintendo_hid_suspend(struct hid_device *hd= ev, pm_message_t message) return 0; } =20 -#endif - static const struct hid_device_id nintendo_hid_devices[] =3D { { HID_USB_DEVICE(USB_VENDOR_ID_NINTENDO, USB_DEVICE_ID_NINTENDO_PROCON) }, @@ -2827,11 +2823,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 04:12:47 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 87DFC389DF8; Tue, 13 Jan 2026 09:26:20 +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=1768296386; cv=none; b=Mrv7nJNXLdO3C2biseXXWIxd+lf5NooO4HQeXBZ+jU5cM7ymB5d1DFlk0MKXW7AmaE1WmeM9nlVh0XbtAWhvXs1tITIXbYSLNqYZUEBlA7Dy0KtfskowgjN22Q/VWpQUfpPMpHBeQA9NAir2CGggshqgliSH7SIBIV4oquDKkxU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768296386; c=relaxed/simple; bh=n735PVrCqqqRR+bWUZKGaC8htV/NhVdUPggqObizcNc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aZ95KkhiVBOdUdxjqJpx9d60ibg9m2k2yjcP/YBB8qJjrWZ6VvA9RWeOxxHuxaVKOB/Sxhxxwl3oq/YgpfI9XcgDo2jkk55YOxZNyctiFgvl/60hTCMyrnVIKzDH3/jXWYpR9eY1OO1unlMXOQzGzrJFU5LKlPrnFZt02fnk1GQ= 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 relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by mslow3.mail.gandi.net (Postfix) with ESMTP id 9D184580EF0; Tue, 13 Jan 2026 09:26:08 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 6B76F433C2; Tue, 13 Jan 2026 09:26:00 +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 v2 07/11] HID: picolcd_core: Use pm_ptr instead of #ifdef CONFIG_PM Date: Tue, 13 Jan 2026 10:24:55 +0100 Message-ID: <20260113092546.265734-8-hadess@hadess.net> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260113092546.265734-1-hadess@hadess.net> References: <20260113092546.265734-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-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduudelleehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeeurghsthhivghnucfpohgtvghrrgcuoehhrgguvghssheshhgruggvshhsrdhnvghtqeenucggtffrrghtthgvrhhnpeevtefhleevjeffteekleehheeujeelhfdvheethefggefhkefgvdefhfegkeeiteenucfkphepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefpdhhvghlohepohhlihhmphhitgdpmhgrihhlfhhrohhmpehhrgguvghssheshhgruggvshhsrdhnvghtpdhqihgupeeiueejiefhgeeffeevvddpmhhouggvpehsmhhtphhouhhtpdhnsggprhgtphhtthhopeehpdhrtghpthhtoheplhhinhhugidqihhnphhuthesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehjihhkohhssehkvghrnhgvl hdrohhrghdprhgtphhtthhopegsvghnjhgrmhhinhdrthhishhsohhirhgvshesrhgvughhrghtrdgtohhmpdhrtghpthhtohephhgruggvshhssehhrgguvghsshdrnhgvth X-GND-State: clean X-GND-Score: -100 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 | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/hid/hid-picolcd_core.c b/drivers/hid/hid-picolcd_core.c index 297103be3381..6a88e6bc70f3 100644 --- a/drivers/hid/hid-picolcd_core.c +++ b/drivers/hid/hid-picolcd_core.c @@ -363,7 +363,6 @@ static int picolcd_raw_event(struct hid_device *hdev, return 1; } =20 -#ifdef CONFIG_PM static int picolcd_suspend(struct hid_device *hdev, pm_message_t message) { if (PMSG_IS_AUTO(message)) @@ -401,7 +400,6 @@ static int picolcd_reset_resume(struct hid_device *hdev) picolcd_leds_set(hid_get_drvdata(hdev)); return 0; } -#endif =20 /* initialize keypad input device */ static int picolcd_init_keys(struct picolcd_data *data, @@ -648,11 +646,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 04:12:47 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 4316838B9B6; Tue, 13 Jan 2026 09:26:19 +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=1768296388; cv=none; b=QgpoelcSQeh4w3gXmJIjGVxwCbHaGetgy9d6NtHAI6YXOrvdQdcnZlgIoeYkuSTRy2FuIBQxqr53uSmSGFrb8dXjq7x01/AYsgIl2GJDUnF9cDzk8sgAuXB8o1jISe3fLQNITlltffaFKP7qe2PU1s7ac42k8YzEiKLIT4ZfC0I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768296388; c=relaxed/simple; bh=gOcdYD0n5Tc/jmGc9RKtrnLaXwYhiHJ+PGHcnImXMp0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EgAIRQ+gLOWJvBFGf1ywCtaQQUI3zdOnG7R4S5vy41ckpTOSPxrVmAFyqVva/XlTx70NsYtYtHAe9/A6wl7bv48p+Y/Yd3DARe3al7DVHmwlKOWztk9ht8+4A7EZJp1U4KzTXYse5zbmHdHUxJJ+l1KyON1HGoOpiIFNs3G1zUc= 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 relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::228]) by mslow3.mail.gandi.net (Postfix) with ESMTP id 9F686580F21; Tue, 13 Jan 2026 09:26:08 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 1BDFF41DF3; Tue, 13 Jan 2026 09:26:00 +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 v2 08/11] HID: hid-sensor-hub: Use pm_ptr instead of #ifdef CONFIG_PM Date: Tue, 13 Jan 2026 10:24:56 +0100 Message-ID: <20260113092546.265734-9-hadess@hadess.net> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260113092546.265734-1-hadess@hadess.net> References: <20260113092546.265734-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-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduudelleehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeeurghsthhivghnucfpohgtvghrrgcuoehhrgguvghssheshhgruggvshhsrdhnvghtqeenucggtffrrghtthgvrhhnpeevtefhleevjeffteekleehheeujeelhfdvheethefggefhkefgvdefhfegkeeiteenucfkphepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefpdhhvghlohepohhlihhmphhitgdpmhgrihhlfhhrohhmpehhrgguvghssheshhgruggvshhsrdhnvghtpdhqihgupeduueffhffhgedufffhfedpmhhouggvpehsmhhtphhouhhtpdhnsggprhgtphhtthhopeehpdhrtghpthhtoheplhhinhhugidqihhnphhuthesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehjihhkohhssehkvghrnhgvl hdrohhrghdprhgtphhtthhopegsvghnjhgrmhhinhdrthhishhsohhirhgvshesrhgvughhrghtrdgtohhmpdhrtghpthhtohephhgruggvshhssehhrgguvghsshdrnhgvth X-GND-State: clean X-GND-Score: -100 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 | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/hid/hid-sensor-hub.c b/drivers/hid/hid-sensor-hub.c index 4c94c03cb573..0edec902be41 100644 --- a/drivers/hid/hid-sensor-hub.c +++ b/drivers/hid/hid-sensor-hub.c @@ -422,7 +422,6 @@ int sensor_hub_input_get_attribute_info(struct hid_sens= or_hub_device *hsdev, } EXPORT_SYMBOL_GPL(sensor_hub_input_get_attribute_info); =20 -#ifdef CONFIG_PM static int sensor_hub_suspend(struct hid_device *hdev, pm_message_t messag= e) { struct sensor_hub_data *pdata =3D hid_get_drvdata(hdev); @@ -463,7 +462,6 @@ static int sensor_hub_reset_resume(struct hid_device *h= dev) { return 0; } -#endif =20 /* * Handle raw report as sent by device @@ -772,11 +770,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 04:12:47 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 8805A38BDA2; Tue, 13 Jan 2026 09:26:20 +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=1768296387; cv=none; b=ie/61Umw3eTTYUju/kkNAQcmC+kXdHZUdqmoF5lg0lwvPdZAS+DigfRKSkQp8G+AcpBL3Cmm1/FSA3J81KZt+UB8Y+yuSodXW6ivCoNY/+HuwcRDfkpR2CzjIaZPEtTWIAdoafIJ3Z14akFRlv8XwiE9FJ3seiL8zpbTSi3Opr0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768296387; c=relaxed/simple; bh=v9YMp81q2yb5wiiELw6gs2ud6iQ2+ITloYJtYSAkzO4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uc+Oh0bPgk8tXmj/Rs03IT0ePtYq6YSFwhm9MCQbqUR5iB6xtoyqhZnbPrZzWbGvxnMhXX4V/Ps9w3YbSPA2+FSCxwwD45ZMpqAkdKlUQbiVcF82mNldA3WgV3/O4MN0EZGt4fC1ts/c18NYsXMXtEjs1R+k64FrGqEa3WpdwaI= 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 relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by mslow3.mail.gandi.net (Postfix) with ESMTP id 974CA580F24; Tue, 13 Jan 2026 09:26:09 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id BF112433BD; Tue, 13 Jan 2026 09:26:01 +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 v2 09/11] HID: uclogic: Use pm_ptr instead of #ifdef CONFIG_PM Date: Tue, 13 Jan 2026 10:24:57 +0100 Message-ID: <20260113092546.265734-10-hadess@hadess.net> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260113092546.265734-1-hadess@hadess.net> References: <20260113092546.265734-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-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduudelleehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeeurghsthhivghnucfpohgtvghrrgcuoehhrgguvghssheshhgruggvshhsrdhnvghtqeenucggtffrrghtthgvrhhnpeevtefhleevjeffteekleehheeujeelhfdvheethefggefhkefgvdefhfegkeeiteenucfkphepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefnecuvehluhhsthgvrhfuihiivgepkeenucfrrghrrghmpehinhgvthepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefpdhhvghlohepohhlihhmphhitgdpmhgrihhlfhhrohhmpehhrgguvghssheshhgruggvshhsrdhnvghtpdhqihgupeeuhfduuddvgeeffeeuffdpmhhouggvpehsmhhtphhouhhtpdhnsggprhgtphhtthhopeehpdhrtghpthhtoheplhhinhhugidqihhnphhuthesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehjihhkohhssehkvghrnhgvl hdrohhrghdprhgtphhtthhopegsvghnjhgrmhhinhdrthhishhsohhirhgvshesrhgvughhrghtrdgtohhmpdhrtghpthhtohephhgruggvshhssehhrgguvghsshdrnhgvth X-GND-State: clean X-GND-Score: -100 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 | 8 ++------ 1 file 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 @@ static int uclogic_probe(struct hid_device *hdev, return rc; } =20 -#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) =20 return rc; } -#endif =20 /** * uclogic_exec_event_hook - if the received event is hooked schedules the @@ -636,10 +634,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 04:12:47 2026 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (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 7E6FD389440; Tue, 13 Jan 2026 09:26:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768296373; cv=none; b=aSAwbSoueqsvy5qJKfr7u/1w7kI/JFBSX1vnNEkDfhsgbUdVvb1o2cWSpWDiLobjkcV0eLAcrhlcieosZKVJkwKlEqIHAaEbkTVlfsxE1bUfrkqU5fuKRsAt++ZIlc7J7DQ1PzKs+YelMVe6VXLDpae5CA1A1F5s0FoyaiclNAc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768296373; c=relaxed/simple; bh=z9W6Mta+VoeUEqjr253o+pW4+fuZC1ysfDYJY8lL4EY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pWw/za0YzsoSQo9SP+fwV8XwDZ6rpOjMZKfo8R7gr04tMQA8O3uI7WeX6MnW6PipTTcXa10Y4b4UBi9ZY1ytd8Um5O55gDTdZInU4N7S4cyh+e5Jxz/ixQ2EuL9ZJXjpOSPL4zXY91HSISs/7lxH4l4V/Nok58MiiLDnHcdEqyc= 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.201 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 5FBFA433CC; Tue, 13 Jan 2026 09:26:02 +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 v2 10/11] HID: wacom: Use pm_ptr instead of #ifdef CONFIG_PM Date: Tue, 13 Jan 2026 10:24:58 +0100 Message-ID: <20260113092546.265734-11-hadess@hadess.net> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260113092546.265734-1-hadess@hadess.net> References: <20260113092546.265734-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-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduudelleehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeeurghsthhivghnucfpohgtvghrrgcuoehhrgguvghssheshhgruggvshhsrdhnvghtqeenucggtffrrghtthgvrhhnpeevtefhleevjeffteekleehheeujeelhfdvheethefggefhkefgvdefhfegkeeiteenucfkphepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefnecuvehluhhsthgvrhfuihiivgepkeenucfrrghrrghmpehinhgvthepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefpdhhvghlohepohhlihhmphhitgdpmhgrihhlfhhrohhmpehhrgguvghssheshhgruggvshhsrdhnvghtpdhqihgupeehhfeuhfetgeeffeevvedpmhhouggvpehsmhhtphhouhhtpdhnsggprhgtphhtthhopeehpdhrtghpthhtoheplhhinhhugidqihhnphhuthesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehjihhkohhssehkvghrnhgvl hdrohhrghdprhgtphhtthhopegsvghnjhgrmhhinhdrthhishhsohhirhgvshesrhgvughhrghtrdgtohhmpdhrtghpthhtohephhgruggvshhssehhrgguvghsshdrnhgvth X-GND-State: clean X-GND-Score: -100 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 | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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); } =20 -#ifdef CONFIG_PM static int wacom_resume(struct hid_device *hdev) { struct wacom *wacom =3D hid_get_drvdata(hdev); @@ -2941,7 +2940,6 @@ static int wacom_reset_resume(struct hid_device *hdev) { return wacom_resume(hdev); } -#endif /* CONFIG_PM */ =20 static struct hid_driver wacom_driver =3D { .name =3D "wacom", @@ -2949,10 +2947,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 04:12:47 2026 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (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 BA18E36C0D3; Tue, 13 Jan 2026 09:26:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768296374; cv=none; b=g1wgBWirzxCMITfqdmM6BuRUiNssxi3QnamV0g6kA4y2w8OISmQwqFrELKBoE5bQWOqWFqrVGp2ZGEwacid5vP/sexSbR4xXZuY7EkolcVyUy8QIo+yMwoysjLsLbp6AvfUeeyV3GAsRnWyGWqDSEwBEVcN53JlnFnnZ2Kw7pTk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768296374; c=relaxed/simple; bh=AP3HTD5guyPD5/yYZSI2KJrHlN2laHw5Ah5N6pDQpKU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EYRYVfygXZb/Jv3jLhn3C+8LvqDnXqOGBXgh88rY6mYknNAwOJm1sJg9OLqoNAxI7VNsMKVSBKczko0eLiXFVPql0qVLKFM7+o9kazqY8J3VdGQmREDh/XQKtswA7iU0uoWKb8Rp64qR+Z4x6fBfluDPCEIh3TO8SbpR4AwaKz4= 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.201 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 0C089433BF; Tue, 13 Jan 2026 09:26:02 +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 v2 11/11] HID: sony: Use pm_ptr instead of #ifdef CONFIG_PM Date: Tue, 13 Jan 2026 10:24:59 +0100 Message-ID: <20260113092546.265734-12-hadess@hadess.net> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260113092546.265734-1-hadess@hadess.net> References: <20260113092546.265734-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-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduudelleehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeeurghsthhivghnucfpohgtvghrrgcuoehhrgguvghssheshhgruggvshhsrdhnvghtqeenucggtffrrghtthgvrhhnpeevtefhleevjeffteekleehheeujeelhfdvheethefggefhkefgvdefhfegkeeiteenucfkphepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefnecuvehluhhsthgvrhfuihiivgepkeenucfrrghrrghmpehinhgvthepvdgrtddumegvfeegmegvtgejfeemtghfvddtmegsrgegfeemrgeijeeimegtvdgufeemjegrheefpdhhvghlohepohhlihhmphhitgdpmhgrihhlfhhrohhmpehhrgguvghssheshhgruggvshhsrdhnvghtpdhqihgupedtvedtkeelgeeffeeuhfdpmhhouggvpehsmhhtphhouhhtpdhnsggprhgtphhtthhopeehpdhrtghpthhtoheplhhinhhugidqihhnphhuthesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehjihhkohhssehkvghrnhgvl hdrohhrghdprhgtphhtthhopegsvghnjhgrmhhinhdrthhishhsohhirhgvshesrhgvughhrghtrdgtohhmpdhrtghpthhtohephhgruggvshhssehhrgguvghsshdrnhgvth X-GND-State: clean X-GND-Score: -100 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 | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c index b966e4044238..de8135c1e3df 100644 --- a/drivers/hid/hid-sony.c +++ b/drivers/hid/hid-sony.c @@ -2179,7 +2179,6 @@ static void sony_remove(struct hid_device *hdev) hid_hw_stop(hdev); } =20 -#ifdef CONFIG_PM =20 static int sony_suspend(struct hid_device *hdev, pm_message_t message) { @@ -2214,8 +2213,6 @@ static int sony_resume(struct hid_device *hdev) return 0; } =20 -#endif - static const struct hid_device_id sony_devices[] =3D { { HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS3_CONTROLLER), .driver_data =3D SIXAXIS_CONTROLLER_USB }, @@ -2284,12 +2281,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