From nobody Mon Feb 9 23:00:51 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