Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4106432rwi; Mon, 17 Oct 2022 01:16:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7qeySMycTwJvLGu9zBx3qw/Us7RUm5avOv7CJSfHqoIbEkcnc8GWrv6wxIexOeb2roqF2w X-Received: by 2002:a17:902:d512:b0:181:f1f4:fcb4 with SMTP id b18-20020a170902d51200b00181f1f4fcb4mr10854156plg.102.1665994579813; Mon, 17 Oct 2022 01:16:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665994579; cv=none; d=google.com; s=arc-20160816; b=yRsjtpKjAjkrqBCMJRp2pBFBoxa9UKC4mg+lV3q/3U4FzxO8OxZ956pIHuGf5nf1Pg MqZaLfQwy3sqax3h+MJxMORLj6FtfFHy6HlxdZ6UJ3Iu/w4flr4XzcfpMf6DGsf7EHNY UdpameY9Qww8k7g7ExhFNMXJv9Jg41vd3CyHJ3J3ZNfDzDgMQwzS3VaMqb960TL4kas5 davWwisVzPLGLNb4QXTj9xdbbcIEcgFR0G0mdNyMuKYjxrq6acOcEkqbopPCVz/rsAo7 j8rVAXThzLJfEaFhffk3tGvCHSaZp5bRSPTUj7E3kr/zMkN1+RhRZdHORW6pSG95Co7h XpRw== 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=R8MwD//PzGAKxopgVb3htm+3GJ3ojZuxOuwcpGc8rqM=; b=UGeLzwo1NuXmajpeoTUi3eG62m3wCxid5A93d9BYXfp1c2ao+P1Nml6/t7TP5+KCq1 cxmIMLwFVDNnEnLx/+SMpIK91oNMxifttkGfghtT1MOhQBZYV4mSdR5mV5yiaBJA2yBK tdSVdBpK5MyiKGgE+V3BRlvL48zMRnMf9TqhFZJGOeKFLGYGMiC2dbdWkyOMAn/tlXcD vrOvng0RcCod3HQ+H900RThmNPSGEDPkzEsICSVBByMvW6WU+7v50CLS7l+ntTsZRDp/ QIae0s+27NQSuufX7ZSPdf2xedTp4S11DmVIhID7GI36U5uBpU7O3oRGMr8UueFHA4wC ljrQ== 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 x19-20020a17090a8a9300b0020d401a03b5si10221395pjn.180.2022.10.17.01.16.07; Mon, 17 Oct 2022 01:16:19 -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; 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 S230083AbiJQILP (ORCPT + 99 others); Mon, 17 Oct 2022 04:11:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229562AbiJQILN (ORCPT ); Mon, 17 Oct 2022 04:11:13 -0400 Received: from out30-56.freemail.mail.aliyun.com (out30-56.freemail.mail.aliyun.com [115.124.30.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA4854A839; Mon, 17 Oct 2022 01:11:09 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R351e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046051;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0VSKm2em_1665994261; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VSKm2em_1665994261) by smtp.aliyun-inc.com; Mon, 17 Oct 2022 16:11:07 +0800 From: Jiapeng Chong To: pavel@ucw.cz Cc: linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] leds-pca955x: Remove the unused function pca95xx_num_led_regs() Date: Mon, 17 Oct 2022 16:10:53 +0800 Message-Id: <20221017081053.52388-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_DNSWL_NONE,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 pca95xx_num_led_regs() is defined in the leds-pca955x.c file, but not called elsewhere, so delete this unused function. drivers/leds/leds-pca955x.c:149:19: warning: unused function 'pca95xx_num_led_regs'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2411 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/leds/leds-pca955x.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/leds/leds-pca955x.c b/drivers/leds/leds-pca955x.c index 81aaf21212d7..33ec4543fb4f 100644 --- a/drivers/leds/leds-pca955x.c +++ b/drivers/leds/leds-pca955x.c @@ -145,12 +145,6 @@ static inline int pca95xx_num_input_regs(int bits) return (bits + 7) / 8; } -/* 4 bits per LED selector register */ -static inline int pca95xx_num_led_regs(int bits) -{ - return (bits + 3) / 4; -} - /* * Return an LED selector register value based on an existing one, with * the appropriate 2-bit state value set for the given LED number (0-3). -- 2.20.1.7.g153144c