Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp932567lqa; Sun, 28 Apr 2024 10:16:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUeOCvTmWV28ru58Ficr+O96fulDUW+O9PjczC2rmJnj1Ixvl8sG9MU2IVHD7w4y4ccLQDK6uY3HlR1oaTwafmCtcSb0q+eP7qFjZRBqA== X-Google-Smtp-Source: AGHT+IE30E/7JlwwzQTxUTjmjec+D2Nv3dZg69HpJHnu0etf2d0Oo1UqGrWtK21C5yMsNWIR20W3 X-Received: by 2002:a17:906:a24e:b0:a55:766f:ce59 with SMTP id bi14-20020a170906a24e00b00a55766fce59mr5270326ejb.75.1714324563869; Sun, 28 Apr 2024 10:16:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714324563; cv=pass; d=google.com; s=arc-20160816; b=R/V+FxHQmx8z8LKNQoFlBJ3lNhS4p/rAgF3e9cmoK7vd9cBqnYulDVQMiOj2BRu9iC 2/HfVivKtwSukBkXEdvZXMnoz98iUPcK0ioeqbb44udKg3vGo2GN8rmmfVsQy/gycvg1 92DnJrZOl80XFwjDDtsCo8f0gKS3Jt0bnvNA2jaX7t208KzXzfFyWOUpTZAZN6VcAanc 8+SB7TosDXWs6U1Q+QJcXJpIi3yiEw4DHnrvDfJYQ0Ta9EcRfpGy2Q067SQNvp9s7j5d hbpwr/wJTodoorNIARewYM+6cO15WljKfveBk8OKEYEbQBoGa6XvEIiGP7zeDbiLtkv0 VLHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=BK7RPti6UkUvOmAIkmd/9QNpbw8XpoHnN+HqRtfulTg=; fh=hwo6l1D8TCoKQDo7Dsktn38eTL21agLBBgMpM/5fuJU=; b=OaEolk8OF8IMrQTLSSzPQ5pAFRIujUFd/PXcVbPHwdtTJgJvyCcRYKytpjx9VV4vge u4NpgTNUYRgUQBDoixRXIwrwC22DnO8KHRxCr//4jM2CmfcTCWl0ylEc5JcDeDPi1Hvg BRjnuUmJ0xeEOggiNF9MV3WiNKk9RORPXkkgMQfK0PLqiZhHkIofdMXZjgGNQKKHLB7U MH81g97xhSUyfvcPn5Ryb8W7a9+KOX6n7eh329vAX9BJvkEY0Pn0eCSDTMHo+y7WcT8K +Pmd3N9mbMNbQ/4ceATSFlRTb8yiNGwAgjZ4tyg//mZyC3DKnpsH7pj8ikJY8JzGVRgi WOYw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=EhAuTmf2; arc=pass (i=1 spf=pass spfdomain=wanadoo.fr dkim=pass dkdomain=wanadoo.fr dmarc=pass fromdomain=wanadoo.fr); spf=pass (google.com: domain of linux-kernel+bounces-161518-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161518-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=wanadoo.fr Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id g15-20020a1709061e0f00b00a5222710986si13633921ejj.134.2024.04.28.10.16.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 10:16:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161518-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=EhAuTmf2; arc=pass (i=1 spf=pass spfdomain=wanadoo.fr dkim=pass dkdomain=wanadoo.fr dmarc=pass fromdomain=wanadoo.fr); spf=pass (google.com: domain of linux-kernel+bounces-161518-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161518-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=wanadoo.fr Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9615C1F21357 for ; Sun, 28 Apr 2024 17:16:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0DB9273199; Sun, 28 Apr 2024 17:15:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="EhAuTmf2" Received: from smtp.smtpout.orange.fr (smtp-24.smtpout.orange.fr [80.12.242.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E19A11DFC5; Sun, 28 Apr 2024 17:15:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.12.242.24 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714324554; cv=none; b=YHPAg5L4Y+nfuecd8PQeMZ5gpG0eC2N3DMBMLtDNJDp/CuhsDi26ZqEAqTXA4+HcdSi2k438t9JlqtVSPo9LX36oL+rbFpdHTKql+1jp26DKE42zmKQHFgjYKak5x34BOM78vBA2rsY9EjtAwueL4Dn+niv9pgPzm4XeBsQlEBU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714324554; c=relaxed/simple; bh=2KHTn+gBnvvbtZfhLE6uBJkjWrOqKvIQgnSHQYp8Vvk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Cbej6UZVwW/S1Odz8/5je5dKAZy7Z/Y/MYJsT/TNJjByOkoNmP2g2IuMqRGngQjQypJ42PzRSwHO994Vc4yA/SW9xyX7bmAO5sO3u4dAh+hWURbNAx1Nx9am4RLU4m15C6nzxHgHFsTKPr18pTongFJTSH78tYdA4RYxghkYEXU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr; spf=pass smtp.mailfrom=wanadoo.fr; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b=EhAuTmf2; arc=none smtp.client-ip=80.12.242.24 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wanadoo.fr Received: from localhost.localdomain ([86.243.17.157]) by smtp.orange.fr with ESMTPA id 187rso5aKhCCi187rsyVv2; Sun, 28 Apr 2024 19:15:44 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1714324544; bh=BK7RPti6UkUvOmAIkmd/9QNpbw8XpoHnN+HqRtfulTg=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=EhAuTmf2or+j6lTj88rnGXo2YukhSn7MMNKI/e9G4bdE47O+60stWBz3C8JiZNlL0 51PPkwi33sCMpgxr31fHyK0kb21yMQ3k3jeLwyjB77OwmxTiYnlvF0flg51V6i84pS Vd7vl+7Wg/F6x8B8KMm9GNwQL+Tzzg3hbQfZmTH7jxF1cspmCb7YviZDoFxVK5+RCW T4FDurAq2boUSy0Ap4jcKnWtTIyYQChPvD60A4boXJWi/aMwbPyTPC6LwY7zp8DjJx bPOIpGLnXD1UIrE3NLYpy4DjNaAL7JrKNi4lTPbcwij5tchLaIRZVzJ2GVSB72LJQl o8qU2/I4B46wg== X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 28 Apr 2024 19:15:44 +0200 X-ME-IP: 86.243.17.157 From: Christophe JAILLET To: Pavel Machek , Lee Jones Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-leds@vger.kernel.org Subject: [PATCH 1/2] leds: lp50xx: Remove an unused field in struct lp50xx_led Date: Sun, 28 Apr 2024 19:15:24 +0200 Message-ID: X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In "struct lp50xx_led", the 'bank_modules' field is unused. Remove it. Found with cppcheck, unusedStructMember. Signed-off-by: Christophe JAILLET --- Compile tested only. It was added added in the initial commit 242b81170fb8 ("leds: lp50xx: Add the LP50XX family of the RGB LED driver") but was never used. --- drivers/leds/leds-lp50xx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/leds/leds-lp50xx.c b/drivers/leds/leds-lp50xx.c index 68c4d9967d68..407eddcf17c0 100644 --- a/drivers/leds/leds-lp50xx.c +++ b/drivers/leds/leds-lp50xx.c @@ -265,7 +265,6 @@ static const struct lp50xx_chip_info lp50xx_chip_info_tbl[] = { struct lp50xx_led { struct led_classdev_mc mc_cdev; struct lp50xx *priv; - unsigned long bank_modules; u8 ctrl_bank_enabled; int led_number; }; -- 2.44.0