Received: by 2002:ac8:678b:0:b0:405:464a:c27a with SMTP id b11csp19536qtp; Tue, 1 Aug 2023 12:25:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlErmCWM6Z6A8UDUzKwjG/ZG5etlsSxyX85ETwtHAgoEuK1OpZKEdgbAdZVPV1CUVCFbw9L4 X-Received: by 2002:a17:903:32c4:b0:1bb:1e69:28c0 with SMTP id i4-20020a17090332c400b001bb1e6928c0mr16350371plr.30.1690917940785; Tue, 01 Aug 2023 12:25:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690917940; cv=none; d=google.com; s=arc-20160816; b=orj4KmpZnYPqHyLDi6PbuJfq14e6BoNkQN9du2leejlcZIPUuXZLuwQ1Nib7uilo36 vt34oXF6WM8PxBy8QFURMCIISPdEwrepVp+A5Vkqz0G2y/CbS/XIsBNXzl+UoDRmPNLZ x1dQ0QC4D02Qar/zqYHV3qQkJfkPShS5Lds1iqSk99ADrnJ5e91co9bxw2qOGpKkx9zQ mjWUMRFByb1ulrWnGC9ApQu/qr/axmEUbLk0I6nF9FyLj20T8lGoC+96nYADrqa4+DyN RtUK8NaopMdELXBlGSK8E2o7ZGNkEu7SEwXv1kCT4LuX5W35OaW2C0JkN0JuKRAcp4NW aADQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c17-20020a170903235100b001a6ef92d441si5183141plh.599.2023.08.01.12.25.27; Tue, 01 Aug 2023 12:25:40 -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 S231287AbjHATEp (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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 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(-) 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[] = { base-commit: 3c87b351809f220294aec3c0df7b078ff5c5b15b prerequisite-patch-id: 9cbdafa114f5dc7490862c8009f781258c9f9884 -- 2.30.2