From patchwork Mon Mar 28 01:22:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Jeffery X-Patchwork-Id: 555209 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD114C433EF for ; Mon, 28 Mar 2022 01:22:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234376AbiC1BYC (ORCPT ); Sun, 27 Mar 2022 21:24:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229812AbiC1BYB (ORCPT ); Sun, 27 Mar 2022 21:24:01 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 085B34F455; Sun, 27 Mar 2022 18:22:20 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id B6C925C00DF; Sun, 27 Mar 2022 21:22:17 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 27 Mar 2022 21:22:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h=cc :cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm3; bh=yEJO//k7VFhFrahKidO0x8PMYk2Dpf2cUnMzGo6EOKU=; b=B75mo T+vSPJdV+27dtbB2hrUMO+99edMO+c2w4JakllN88EqlnYj8sb9Xlh8Iplyt5ZGn 2pHzztQ/04VzuONHdjK67gNbv/445svfA8+eUMJMJ1m3tIzE4Mar5vZphFX8UQw5 MsLNseP1nBYN+OGPLIEMJ3HWtFHQ81urGmKUx+O/LqnVixHVBpjeGhypoUpGlwVU 5+aPntpEicUMQGok4izXPamkEfmIL3/jK+E2JAQfY7e9tismDQmqDfJH4g63J7SL pS6UB21YnHqXs/UZfJftgMg2RY6WIHxP+4kPi0EzhxgOaJpYRCb8Ar2GM4h4E4nQ 3clxTUoVLnSYNSAaA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=yEJO//k7VFhFrahKidO0x8PMYk2Dp f2cUnMzGo6EOKU=; b=FAdrmKzrEoHdPmqz5XoPKu7VkCm1dDUh/3z29XiGsxpTi 44Qbvf84tyeMoKd9oZopVrsRZCK5XNvvlAHSw12CpUisexygY9qr/PJEHhNYnknT BX/okJjZjs9FvW4XzuaR+zs0bk7JxBZ2nbUWAm6P64z2BQrjLLR9looO/QCu9HY2 7orZrApc0OMYF4r4T6frsHND2U/rSRQlfeW3FYYRRW3qRzyiSFdYv4IB2n1YH7bK yL71tkIOaVoFWrsVy0AwbpT4NIeyDxeq0kKLcMsiOPdap+MeEWKcA30g26IjtHCI ylbISJnq6VARPfZp7Vm4RRi+UlJpJs7E/cfn9HEcg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudehiedggeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomheptehnughrvgifucflvghffhgvrhihuceorghnughrvgifsegrjhdr ihgurdgruheqnecuggftrfgrthhtvghrnhepieetheduveelhfdvvdejleeuhfelteevhe ffgfeitdefgeekjeefieevgfehhefgnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurh gvfiesrghjrdhiugdrrghu X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 27 Mar 2022 21:22:14 -0400 (EDT) From: Andrew Jeffery To: linux-leds@vger.kernel.org Cc: pavel@ucw.cz, jacek.anaszewski@gmail.com, clg@kaod.org, joel@jms.id.au, linux-kernel@vger.kernel.org, kernel test robot Subject: [PATCH] leds: pca955x: Remove unused pca95xx_num_led_regs() Date: Mon, 28 Mar 2022 11:52:05 +1030 Message-Id: <20220328012205.91454-1-andrew@aj.id.au> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org Commit 561099a1a2e9 ("leds: pca955x: add GPIO support") removed the remaining use of pca95xx_num_led_regs(). Recently the kernel test robot started complaining about the unused symbol after some patches to the driver were merged[1]. Drop the unused function. [1] https://lore.kernel.org/all/202203260634.OFB2IPFf-lkp@intel.com/ Fixes: 561099a1a2e9 ("leds: pca955x: add GPIO support") Reported-by: kernel test robot Signed-off-by: Andrew Jeffery Reviewed-by: Joel Stanley --- 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).