From nobody Tue Feb 10 01:59:23 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