From patchwork Tue Aug 1 19:04:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hugo Villeneuve X-Patchwork-Id: 129452 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp2893535vqg; Tue, 1 Aug 2023 12:43:09 -0700 (PDT) X-Google-Smtp-Source: APBJJlF7sfHPVuKCpxpA09Lq3YUJclBmZA/ZUnB1wQdiH84SYzN85Wm4VoJrEwilmgeA4/FLZng8 X-Received: by 2002:a17:90b:1a87:b0:262:ec7f:af82 with SMTP id ng7-20020a17090b1a8700b00262ec7faf82mr12198059pjb.22.1690918989261; Tue, 01 Aug 2023 12:43:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690918989; cv=none; d=google.com; s=arc-20160816; b=pjcDbglZGGy+K3PgXvnrxAST4dUh+vv5NoiiUlK9IW3Sw5FWDI22ClHwtW6wlxRzR7 DtQD/41hzUWwromxidsJDqUoVWjMwccCBaBNIdzt6HSiwzRCcb0srXq6tKl8uAg0xhqU QTnw3EI7Hq3a9OTzvmMZFDYD3W8zSLqHpMfHMb9JvvuKvLlTNQYVgR38aMYuw//jLk7e m9bHw6x+8RZC+ME+oZOt8iWF6ZNMaiBjUEtPl042aU/+SWVEaYFVq8GqOVwqVBekaMpP Gvw+Rrvixry2vMyGDlAZzfbxg7TEY5iG7vqskJQBZxlR4YSzIT/7EMUKpQi525F67dqI OjVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding:mime-version :message-id:date:cc:to:from:dkim-signature; bh=1y6fLsED4M7O0xTn5G+GNfaljUI69EpS2E67l1a0Emk=; fh=6LhdUTwFsDk4MQCCbKOOS7PY1zHy93RXDm/uFHT4xt4=; b=iJjIXNpuLr0FvXtIQJKraUulqGcnUBykVfY4Wcnf6KReTRmh02W32v/lc7dxVwP9eA CDakPdbS8jIYVaS/XFBOF6ZvTLgIFV7vlE4CTULJVP+irlWmMDT22egUK6LDBsPjXthH WSkXXi2DfGPDNGyVo8wydOg0G4dmUiTwPrHchdDF3FSTnRh3gmBn0NLbBxOyNudWgNwY w2ChX4KCq+6Yr3eAOGFElLxotwS7d7sCLmw9eecMyde1sqfvPb34lqM3BwpYhc/nWY9N ZWAxlGOx5q5iVF3wzNcJ5HLed80jK1LI1QHTj5LMaMz3UJHtE65gtnFTLJNSnQn8fTiq ZAOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hugovil.com header.s=x header.b="sa/OIuWx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x8-20020a17090aca0800b00268515ce449si9470050pjt.94.2023.08.01.12.42.55; Tue, 01 Aug 2023 12:43:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@hugovil.com header.s=x header.b="sa/OIuWx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231393AbjHATEp (ORCPT + 99 others); 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 X-SA-Exim-Connect-IP: 184.161.19.61 X-SA-Exim-Mail-From: hugo@hugovil.com X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773057069861103466 X-GMAIL-MSGID: 1773057069861103466 From: Hugo Villeneuve Fixes the following W=1 kernel build warning(s): drivers/rtc/rtc-pcf2127.c: In function ‘pcf2127_probe’: drivers/rtc/rtc-pcf2127.c:635:32: warning: unused parameter ‘name’ [-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(-) base-commit: 3c87b351809f220294aec3c0df7b078ff5c5b15b prerequisite-patch-id: 9cbdafa114f5dc7490862c8009f781258c9f9884 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 device *dev) } 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 = 0; @@ -1402,8 +1402,7 @@ static int pcf2127_i2c_probe(struct i2c_client *client) return PTR_ERR(regmap); } - return pcf2127_probe(&client->dev, regmap, client->irq, - pcf2127_i2c_driver.driver.name, variant); + return pcf2127_probe(&client->dev, regmap, client->irq, variant); } static struct i2c_driver pcf2127_i2c_driver = { @@ -1475,9 +1474,7 @@ static int pcf2127_spi_probe(struct spi_device *spi) return PTR_ERR(regmap); } - return pcf2127_probe(&spi->dev, regmap, spi->irq, - pcf2127_spi_driver.driver.name, - variant); + return pcf2127_probe(&spi->dev, regmap, spi->irq, variant); } static const struct spi_device_id pcf2127_spi_id[] = {