Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2869938rwl; Tue, 27 Dec 2022 00:28:41 -0800 (PST) X-Google-Smtp-Source: AMrXdXu7G0mAQI1+HMkspWCgXqndz8eOa2EuWxLA4KfZTTvnNsthLLX1CjrFeUfjG+0LsL/mJ871 X-Received: by 2002:aa7:cc0d:0:b0:467:57ad:a1b2 with SMTP id q13-20020aa7cc0d000000b0046757ada1b2mr21774011edt.21.1672129720934; Tue, 27 Dec 2022 00:28:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672129720; cv=none; d=google.com; s=arc-20160816; b=oYBnRBMvSks9WieJ8/02mhLp6+xhFJh6/KC5Z5aRm99Rh6HO2r0b/MURWA3vMPivUK XHJhFvDR/JMrFsTmJeyZZvhMKkR6JLIS8N7No8JLHsTmJ6TFNqcn61gH7eS18DRwzXoL oJu8pDTRfXRXP3qKKY/OPA82ZCPg0D0a7HgEejfFlEjuC53qMM6egab9mEPjxpB2XHoB vq8ppYkRiCyyFh3k4Mmdsp7Mp5Ul9IGPmcmPAHTHpHP3ROWrrqdDCuQ1kORC79GqYVHd mbr9VWs1WHLZK1hfkhOlrCGPXf42gazubwDklWjqWkVFrVXvgiCO6RZXJOv5L/t0SvMg VkCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=JGr4HKj/Ih8R+vw9xX2/Ra+tN15EzbCO5i5nDsFtyxY=; b=V19wojIXmnq/0eQwpDDz/ZRjI6ldt54xn/zTneOSiBbAGMT+qkt+jiTE3HzKTm+tq2 6awMOoj/d1MCjhrPpXT6XeE0J7MP6lOnmgVbHY2Kn6dL3gGelyEw3pIVU9fRaKn8ETBH yYAV+2F/jHF3TPeH0UMLKaR8D0971rCM8VBrfYLY2OkdxWKcewNvoJU47MwZiDjRn6EM zA5g9A76c0lR+65y6QPSsCYLWz7z8CHGDV1Lhk+VjpCgBUYW/9t5kL3sgdIo23BwKsaw rT6CgDyJGWLONYlpJj9qJifqlieiN/KRFfdgcdPyUE7811HOfd7vPEKjYyLzLo8WkDPk AkaA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f15-20020a056402354f00b00485fa68b06csi3141093edd.354.2022.12.27.00.28.25; Tue, 27 Dec 2022 00:28:40 -0800 (PST) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230026AbiL0ISx (ORCPT + 66 others); Tue, 27 Dec 2022 03:18:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229936AbiL0ISR (ORCPT ); Tue, 27 Dec 2022 03:18:17 -0500 Received: from out30-8.freemail.mail.aliyun.com (out30-8.freemail.mail.aliyun.com [115.124.30.8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DF2F6457 for ; Tue, 27 Dec 2022 00:18:16 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R691e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0VYCurfl_1672129087; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VYCurfl_1672129087) by smtp.aliyun-inc.com; Tue, 27 Dec 2022 16:18:14 +0800 From: Jiapeng Chong To: lee@kernel.org Cc: linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] mfd: max8925: Remove the unused function irq_to_max8925() Date: Tue, 27 Dec 2022 16:18:05 +0800 Message-Id: <20221227081805.54185-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The function irq_to_max8925() is defined in the max8925-core.c file, but not called elsewhere, so remove this unused function. drivers/mfd/max8925-core.c:472:40: warning: unused function 'irq_to_max8925'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3561 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/mfd/max8925-core.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/mfd/max8925-core.c b/drivers/mfd/max8925-core.c index eb3f061c8ee6..0246bbe80354 100644 --- a/drivers/mfd/max8925-core.c +++ b/drivers/mfd/max8925-core.c @@ -469,12 +469,6 @@ static struct max8925_irq_data max8925_irqs[] = { }, }; -static inline struct max8925_irq_data *irq_to_max8925(struct max8925_chip *chip, - int irq) -{ - return &max8925_irqs[irq - chip->irq_base]; -} - static irqreturn_t max8925_irq(int irq, void *data) { struct max8925_chip *chip = data; -- 2.20.1.7.g153144c