Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp936250lqa; Sun, 28 Apr 2024 10:25:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUuCuNs0MItIDmKFbhS5ClQovyUZs3puc5Wa6/T8T8aQnFZ19XaCIeFVq2HwVOE9B9ICNCpA69IdnPp8SGrPk+eWIyiDH0R594WeLa9sg== X-Google-Smtp-Source: AGHT+IGUZrXfdOUKj3V65PsfMpZPEdoQVlg4sKGD2sJBXX+zjtpK9G0t/fYzaxzxO9yxR3YQe1TA X-Received: by 2002:a17:90a:1689:b0:2a5:3aec:fdef with SMTP id o9-20020a17090a168900b002a53aecfdefmr7268373pja.47.1714325138342; Sun, 28 Apr 2024 10:25:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714325138; cv=pass; d=google.com; s=arc-20160816; b=m8xe8tH4ohxQIsAtEJlKm2bJsjgbsGAUFx9+gaN8ubSQ4wCrI3S3+EYg/NzLGmbixX ISfLbIUEAiM4Cqz1PeV/zpZdAJu4fP2n3fuWoJUJS3vgynXtOh2/QHl+/dk22NkthyIb 4WA99uS7xiG3f/NamXD3YSYfsGi2riRp4d3Vg8Z8y0BMQgD62NHjoOTCseWpKXzjTTQB PzRa4omQwEzQLWOfgPRdl2kDTmKfSFe2WsZtmFafJ81IgkxuwkxgmavN7RpD+oisHXeZ cd8gYiIpXQo5xOl9t6a2S+rMh+wW1Snh91q41La1iUEs4Bd4FxEl/3TxXf84o8Zy4TOx Wbxg== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=5CZgwmjLxv43WMhGXX/Yzm0AcpGimpypUVeUw8u1ncs=; fh=hwo6l1D8TCoKQDo7Dsktn38eTL21agLBBgMpM/5fuJU=; b=nMm5z55avZFBQB/C1ezp3ekZeR9TqoaHjkGyRkb9pcTv0tRU9maDExFak7zFE3wuBm +hnXzvYRnZ2fS0sbfjWF4f3QjCk2EOJh2stZQSYDzxzk+J3d8bSqPi1g7KJU1FtfMOcY 8J3RZ1mP7pqeuGuHWGIJ/bIHDnlRstnGL2Krd+Xy2OHhP4MvvwCxN/V7ydACjKbAh2ZB QXHfeJOa6JlWlBPbAZVqek/dS0I7udbgWe/38b7PDTxTX3xLd0cTNjE6oX/0fH3nGyZ5 svWZ8SwFe8bfQD4VCYPBDCO7J8b0SnTrw5cCA9esOvG2zHC+S5u9dw6OfWJCx8aiKywp WQOQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=ed0LQV1E; 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-161524-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161524-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=wanadoo.fr Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b2-20020a17090a550200b002a60efe265asi14975730pji.187.2024.04.28.10.25.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 10:25:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161524-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=ed0LQV1E; 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-161524-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161524-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C38462815F6 for ; Sun, 28 Apr 2024 17:25:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 710387350E; Sun, 28 Apr 2024 17:25:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="ed0LQV1E" Received: from smtp.smtpout.orange.fr (smtp-23.smtpout.orange.fr [80.12.242.23]) (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 33FA93BBCA; Sun, 28 Apr 2024 17:25:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.12.242.23 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714325127; cv=none; b=QOLADktJxRr6rjoqZU+C8sPhSrD2AfnGPhYeLnu9BOKTpwVBCi7GZGE89yBTLgRh3el+a8MSoQEKWJaFkuQX6nOYB3tOQs6r4kmX++sNWkqEKcVZGhReOXWg8nKFHJeJJU8nSQvNhhN/wMLud7LUn6AmtHbNS1esR8BnsOAVlCM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714325127; c=relaxed/simple; bh=5Ie8qBiBobpvq91m8AfEjh4NgFLM5+PpWwD6L45jGsM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NLqtx6GSNl8U62BhwebXP5ETWVcoFFIywcYR+SVIhr8EOMc1JWEkYybtOGMVPTQOyjXeYlwPXf6y7V+AfHVqyLNVYgihis2vqXAIDjHWRIT35dUnsYnGX1xp/CjPnPxrUu6qo5geYDs8ocY/SvRDtB9Ifvnqo5Eaf271Ud5VoFA= 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=ed0LQV1E; arc=none smtp.client-ip=80.12.242.23 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 187rso5aKhCCi187ysyVvo; Sun, 28 Apr 2024 19:15:51 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1714324551; bh=5CZgwmjLxv43WMhGXX/Yzm0AcpGimpypUVeUw8u1ncs=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=ed0LQV1EVZScxldK46Qkqnyk6u95rniGUT3+SheeNMfBTOOE5RasW+Jy5QDMb3hYo nhKlu4DH3YvdGfJZXDrHyyGdxA8k2mnJV+tWV55gqsWs1EbmaWdRS7Zo7KeiA81OYy 1HLwkDK4i2APklK5H5es5gr6MUFjwFBYrm0pHvKPhiqVLjMIMySIxLn6Oq9qWc2QGk WCZK1jy73Itd31EFP6sbaxu3cGzUhQccKeyxnR8+MZMYriOCiuDkyYAbJqwJK6/3xy IzTBAmmjjwYjBu/gKPq2u5kZDBNQHWtA/Bs2//pcV90GHaL4Gi6jLlqvQ3FvUc78K4 cd498XOTL1JjA== X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 28 Apr 2024 19:15:51 +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 2/2] leds: lp50xx: Remove an unused field in struct lp50xx Date: Sun, 28 Apr 2024 19:15:25 +0200 Message-ID: X-Mailer: git-send-email 2.44.0 In-Reply-To: References: 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", the 'num_of_banked_leds' field is only written and is never used. Moreover, storing such an information in the 'priv' structure looks pointless. So, remove it. Signed-off-by: Christophe JAILLET --- Compile tested only. --- drivers/leds/leds-lp50xx.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/leds/leds-lp50xx.c b/drivers/leds/leds-lp50xx.c index 407eddcf17c0..175d4b06659b 100644 --- a/drivers/leds/leds-lp50xx.c +++ b/drivers/leds/leds-lp50xx.c @@ -278,7 +278,6 @@ struct lp50xx_led { * @dev: pointer to the devices device struct * @lock: lock for reading/writing the device * @chip_info: chip specific information (ie num_leds) - * @num_of_banked_leds: holds the number of banked LEDs * @leds: array of LED strings */ struct lp50xx { @@ -289,7 +288,6 @@ struct lp50xx { struct device *dev; struct mutex lock; const struct lp50xx_chip_info *chip_info; - int num_of_banked_leds; /* This needs to be at the end of the struct */ struct lp50xx_led leds[]; @@ -403,8 +401,6 @@ static int lp50xx_probe_leds(struct fwnode_handle *child, struct lp50xx *priv, return -EINVAL; } - priv->num_of_banked_leds = num_leds; - ret = fwnode_property_read_u32_array(child, "reg", led_banks, num_leds); if (ret) { dev_err(priv->dev, "reg property is missing\n"); -- 2.44.0