Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2626321rwi; Fri, 21 Oct 2022 06:12:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5qJNSPeo7TrV4WKX/9imNCKNSKNN3bRPeVTEphfx+heysGdHV0i2hSXurWo2ARFi1fYHBY X-Received: by 2002:a17:907:6d18:b0:78e:259d:c391 with SMTP id sa24-20020a1709076d1800b0078e259dc391mr15507887ejc.615.1666357942684; Fri, 21 Oct 2022 06:12:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666357942; cv=none; d=google.com; s=arc-20160816; b=HeoADWJW0jc4qp6wWmOC+XWI49y8Bgb1gbq7hFt5HS/d960EX2MfnbwglE9sEtPy6P klQDf6ZVRC6VfDjqbVtFV6pHbweVurxPOpbplC21OUWKsmA9jVAyHttdIcikZHlO1VDW 2BWz1Jqmj2ChhQ2UlPzIr1r4p9CHbYG4nanaHOadKukGhrZLTpRTyxt6hX1HX4MEfVT+ iUTGyRwPjQLP/kKvucPwKJUrcMyCQH0K8OKdeg8Os1M5HuykMUPRnEvgT/R1VLgfqxYS 0aJBvDDwks7pQypvEtT+q0ByQ7aQHcdvtRRNLBne9WXlGj/GwZxrckG+Bv6MxqUkOEhW h5qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=tA4VVF/5mJdTqrprHndtKRiYsUiXim9pA/NSbFuYx+w=; b=u46fMJTNP50UwFiQeijP74JJHhoMcCNoTmsZefZNNlyNNvH/s/zVMDCUpVJIYZFOXR D2+CwBHl7qUslcbw9yy8VejV7Z8oKm1WQUkW8Jmq9BFesS39wNFYkfIUTmBBp51gBG1L X3HeIjuZFIo/zUuJ/oXdoKn4gu2UNpmrgkY1KRoOsiSAVjOmN/48G8QnYDTnvbYofUOD eJl+2vxifBtSObii4Wl7O9f5fWFCp74U6ZiI7N32/O8mtQvuMJcHJnHk7/k9Hr1k+nM6 suvcAiLnGz1iTOtdeKIRztAOSmsCWzlf1jbsWDxpDGtz47bW0l+PO2RgAdHTGufgU2+x lTdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=UuklZPUv; 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=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k20-20020a170906159400b0077bab1f707esi16637960ejd.159.2022.10.21.06.11.55; Fri, 21 Oct 2022 06:12:22 -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=pass header.i=@ucw.cz header.s=gen1 header.b=UuklZPUv; 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=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230036AbiJUNKN (ORCPT + 99 others); Fri, 21 Oct 2022 09:10:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230234AbiJUNKF (ORCPT ); Fri, 21 Oct 2022 09:10:05 -0400 Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B64E1BC61B; Fri, 21 Oct 2022 06:09:51 -0700 (PDT) Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id C67351C09D6; Fri, 21 Oct 2022 15:08:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1666357725; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=tA4VVF/5mJdTqrprHndtKRiYsUiXim9pA/NSbFuYx+w=; b=UuklZPUvRWZRTiez/dBmhtGqXT8KwjCD7Mc5OZc/qB0w/+fN4qkswgBc0GWoKHYL33BE46 y8nXBwhA7NbUJbKK69rEjTNZdW+LRh8u0jWlFvuD4B1yNIJpVYJGT2PPydNzCDa7iLTxUg XuS6TFsCse5ifAaLk9Lbg1ioJIUpFXI= Date: Fri, 21 Oct 2022 15:08:45 +0200 From: Pavel Machek To: Jiapeng Chong Cc: linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, Abaci Robot Subject: Re: [PATCH] leds-pca955x: Remove the unused function pca95xx_num_led_regs() Message-ID: <20221021130845.GA16264@duo.ucw.cz> References: <20221017081053.52388-1-jiapeng.chong@linux.alibaba.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nFreZHaLTZJo0R7j" Content-Disposition: inline In-Reply-To: <20221017081053.52388-1-jiapeng.chong@linux.alibaba.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, URIBL_BLOCKED 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 --nFreZHaLTZJo0R7j Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > The function pca95xx_num_led_regs() is defined in the leds-pca955x.c > file, but not called elsewhere, so delete this unused function. >=20 > drivers/leds/leds-pca955x.c:149:19: warning: unused function 'pca95xx_num= _led_regs'. Thank you, applied. Best regards, Pavel > +++ b/drivers/leds/leds-pca955x.c > @@ -145,12 +145,6 @@ static inline int pca95xx_num_input_regs(int bits) > return (bits + 7) / 8; > } > =20 > -/* 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). --=20 People of Russia, stop Putin before his war on Ukraine escalates. --nFreZHaLTZJo0R7j Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCY1KZ3QAKCRAw5/Bqldv6 8nMaAJ43HmLO4zeFHwMAiePUeNJgL3pThgCdFbbgxqTMLO9ylnTp4j8ny+YOHks= =1LkM -----END PGP SIGNATURE----- --nFreZHaLTZJo0R7j--