From nobody Tue Feb 10 04:12:31 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