From nobody Wed Sep 10 02:49:36 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CA5A9C04A94 for ; Tue, 1 Aug 2023 19:04:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231190AbjHATEp (ORCPT ); Tue, 1 Aug 2023 15:04:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229495AbjHATEo (ORCPT ); Tue, 1 Aug 2023 15:04:44 -0400 Received: from mail.hugovil.com (mail.hugovil.com [162.243.120.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3C4B1B6; Tue, 1 Aug 2023 12:04:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=hugovil.com ; s=x; h=Subject:Content-Transfer-Encoding:Content-Type:MIME-Version: Message-Id:Date:Cc:To:From:Sender:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=1y6fLsED4M7O0xTn5G+GNfaljUI69EpS2E67l1a0Emk=; b=sa/OIuWxB2iy86ItQTTt1CpQ+n 8FADi+We4tFabneZnOy8KliPhuvxg1OeQHcCSp2sk7wgLuB5cMcLy2Qyn/ezA6WGf6nF5eNaESV0n MnhJ8aCvPh2p35U2IjVnBq+sXng7ATG6J6eTEe9LJBs1NxH+9wn0y7z+cDp9uFzYOFC4=; Received: from modemcable061.19-161-184.mc.videotron.ca ([184.161.19.61]:41916 helo=localhost.localdomain) by mail.hugovil.com with esmtpa (Exim 4.92) (envelope-from ) id 1qQufc-0001TE-Ks; Tue, 01 Aug 2023 15:04:37 -0400 From: Hugo Villeneuve To: Alessandro Zummo , Alexandre Belloni Cc: hugo@hugovil.com, Hugo Villeneuve , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 1 Aug 2023 15:04:32 -0400 Message-Id: <20230801190432.3340545-1-hugo@hugovil.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-SA-Exim-Connect-IP: 184.161.19.61 X-SA-Exim-Mail-From: hugo@hugovil.com Subject: [PATCH] rtc: pcf2127: remove unused function argument X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on mail.hugovil.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hugo Villeneuve Fixes the following W=3D1 kernel build warning(s): drivers/rtc/rtc-pcf2127.c: In function =E2=80=98pcf2127_probe=E2=80=99: drivers/rtc/rtc-pcf2127.c:635:32: warning: unused parameter =E2=80=98name= =E2=80=99 [-Wunused-parameter] 635 | int alarm_irq, const char *name, bool is_pcf2127) | ~~~~~~~~~~~~^~~~ Signed-off-by: Hugo Villeneuve --- drivers/rtc/rtc-pcf2127.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/rtc/rtc-pcf2127.c b/drivers/rtc/rtc-pcf2127.c index 3387afe93417..14f59e4535e8 100644 --- a/drivers/rtc/rtc-pcf2127.c +++ b/drivers/rtc/rtc-pcf2127.c @@ -1103,7 +1103,7 @@ static int pcf2127_configure_interrupt_pins(struct de= vice *dev) } =20 static int pcf2127_probe(struct device *dev, struct regmap *regmap, - int alarm_irq, const char *name, const struct pcf21xx_config *config) + int alarm_irq, const struct pcf21xx_config *config) { struct pcf2127 *pcf2127; int ret =3D 0; @@ -1402,8 +1402,7 @@ static int pcf2127_i2c_probe(struct i2c_client *clien= t) return PTR_ERR(regmap); } =20 - return pcf2127_probe(&client->dev, regmap, client->irq, - pcf2127_i2c_driver.driver.name, variant); + return pcf2127_probe(&client->dev, regmap, client->irq, variant); } =20 static struct i2c_driver pcf2127_i2c_driver =3D { @@ -1475,9 +1474,7 @@ static int pcf2127_spi_probe(struct spi_device *spi) return PTR_ERR(regmap); } =20 - return pcf2127_probe(&spi->dev, regmap, spi->irq, - pcf2127_spi_driver.driver.name, - variant); + return pcf2127_probe(&spi->dev, regmap, spi->irq, variant); } =20 static const struct spi_device_id pcf2127_spi_id[] =3D { base-commit: 3c87b351809f220294aec3c0df7b078ff5c5b15b prerequisite-patch-id: 9cbdafa114f5dc7490862c8009f781258c9f9884 --=20 2.30.2