From mboxrd@z Thu Jan 1 00:00:00 1970 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 AE9C474404; Sun, 28 Apr 2024 18:27:46 +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=1714328870; cv=none; b=TOtQ4pCvLIue8D1YvdJFrNnxcCOgqsZREXTXENpcHDVxlSUwL13Z82ailx1JAwkyW+uc0gLqLGiqemE29++njYt7uKAifCDl6c2n0XwqucldvpJOktoltyAGEyEUIOYnBothuA5MQ6ZuspfPSD1XOILuRUbhsfUkwh4sehUH44c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714328870; c=relaxed/simple; bh=i8dPY/8E/o3tPZjh6g3KMR1QwVM6zkUNIagiMZaI2VQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=byE2vbsGLjUV9u4O3hOOcYXqRixgYFgARjD5N2hPVgbbX60JVbDvypq1qr9YPV/26x/aRo07vlKaFsifz+BZrpKrgIQxq76T96Qax5lJ7xeqPcSD/RLoNLFLKdh6th0L/8AwxUm03QQ+ultW/KmYLgHUB/uSLgB9BU6hoCjCaVM= 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=ts6pYZW6; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="ts6pYZW6" Received: from localhost.localdomain ([86.243.17.157]) by smtp.orange.fr with ESMTPA id 19FXsdAPqjQGD19FXsx1n6; Sun, 28 Apr 2024 20:27:44 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1714328864; bh=HfgwZeVvsF2i06wNeH1wK9xQEXXX0R93e8MR9OP26AA=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=ts6pYZW6eyTY9+PYyPZtO8/V1mVA5dSfT5RaTPQassuvTFAbgixwqR64lA8/9C+gW mPqbE/pMf3nkUBkQCedwHTTUhG1BRKvOsxxcOPl1Z5FR9UrxaPKigF9UQj+brNaTt0 +htzQy8HiFLkGgm93WfMJsRiSQn9v2AjwiPAkbn2wv+7APMff584QDFmxloNUeu3fH Ppb+3OD4uMK3X5xk8LMFu3X6JOxsgE2jbqypbJK4jgiOaIs5MJePNP+WdB86xMx7Nf 5+1WUXDfc6bZ38gk9zna2+5jPkPSISpIyM2hCuVA9PYsMUsoW3MzUZ7ipMQObdmUxd Gi9L8nXV+m1ag== X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 28 Apr 2024 20:27:44 +0200 X-ME-IP: 86.243.17.157 From: Christophe JAILLET To: Pavel Machek , Lee Jones , Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-leds@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH] leds: mt6370: Remove an unused field in struct mt6370_priv Date: Sun, 28 Apr 2024 20:27:31 +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 mt6370_priv", the 'reg_cfgs' field is unused. Moreover the "struct reg_cfg" is defined nowhere. Neither in this file, nor in a global .h file, so it is completely pointless. Remove it. Found with cppcheck, unusedStructMember. So, remove it. Signed-off-by: Christophe JAILLET --- Compile tested only. --- drivers/leds/rgb/leds-mt6370-rgb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/leds/rgb/leds-mt6370-rgb.c b/drivers/leds/rgb/leds-mt6370-rgb.c index 448d0da11848..359ef00498b4 100644 --- a/drivers/leds/rgb/leds-mt6370-rgb.c +++ b/drivers/leds/rgb/leds-mt6370-rgb.c @@ -149,7 +149,6 @@ struct mt6370_priv { struct regmap_field *fields[F_MAX_FIELDS]; const struct reg_field *reg_fields; const struct linear_range *ranges; - struct reg_cfg *reg_cfgs; const struct mt6370_pdata *pdata; unsigned int leds_count; unsigned int leds_active; -- 2.44.0 From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 00CABC4345F for ; Sun, 28 Apr 2024 18:28:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=JfLbRksmV5dk1xBJF3rwqpS8ReyKY6QfqpoBsOOmG0Y=; b=JxNTsA8pPQqh/D MGu/0uejqtKq210GeV0kOP/ifXfGqkAVZq/KIcijfACw6tDtHhRKMNs314YGrz3l6MCv5LM1BEFhg 7bCbtipsXQf8N7EIJSO27EKJKAS2VQNoMq71XNH9YzAJ4P/9UtmkeEsjEdutyZlT1Jw08MhgaiPrM m0M/Hmkj2Tf4xyMGPT5BxDbl0ExfvONCuOn/cs8CJ04vot4/7vzqtPuqhL+E9wI1VporFwzNUy+bO PeanCQeRMzjqrSIp+0tzESBKOvqxuG6ghcKZvJwnlKFwkTOB4L4hla26qrFUYw8QdN43U5ZmClQcq esFpAEiscnpET8jYbxZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s19Fk-00000000UA1-2Eaf; Sun, 28 Apr 2024 18:27:56 +0000 Received: from smtp-76.smtpout.orange.fr ([80.12.242.76] helo=msa.smtpout.orange.fr) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s19Fg-00000000U5M-1RRQ; Sun, 28 Apr 2024 18:27:54 +0000 Received: from localhost.localdomain ([86.243.17.157]) by smtp.orange.fr with ESMTPA id 19FXsdAPqjQGD19FXsx1n6; Sun, 28 Apr 2024 20:27:44 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1714328864; bh=HfgwZeVvsF2i06wNeH1wK9xQEXXX0R93e8MR9OP26AA=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=ts6pYZW6eyTY9+PYyPZtO8/V1mVA5dSfT5RaTPQassuvTFAbgixwqR64lA8/9C+gW mPqbE/pMf3nkUBkQCedwHTTUhG1BRKvOsxxcOPl1Z5FR9UrxaPKigF9UQj+brNaTt0 +htzQy8HiFLkGgm93WfMJsRiSQn9v2AjwiPAkbn2wv+7APMff584QDFmxloNUeu3fH Ppb+3OD4uMK3X5xk8LMFu3X6JOxsgE2jbqypbJK4jgiOaIs5MJePNP+WdB86xMx7Nf 5+1WUXDfc6bZ38gk9zna2+5jPkPSISpIyM2hCuVA9PYsMUsoW3MzUZ7ipMQObdmUxd Gi9L8nXV+m1ag== X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 28 Apr 2024 20:27:44 +0200 X-ME-IP: 86.243.17.157 From: Christophe JAILLET To: Pavel Machek , Lee Jones , Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-leds@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH] leds: mt6370: Remove an unused field in struct mt6370_priv Date: Sun, 28 Apr 2024 20:27:31 +0200 Message-ID: X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240428_112752_888165_CB1D787C X-CRM114-Status: UNSURE ( 8.85 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In "struct mt6370_priv", the 'reg_cfgs' field is unused. Moreover the "struct reg_cfg" is defined nowhere. Neither in this file, nor in a global .h file, so it is completely pointless. Remove it. Found with cppcheck, unusedStructMember. So, remove it. Signed-off-by: Christophe JAILLET --- Compile tested only. --- drivers/leds/rgb/leds-mt6370-rgb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/leds/rgb/leds-mt6370-rgb.c b/drivers/leds/rgb/leds-mt6370-rgb.c index 448d0da11848..359ef00498b4 100644 --- a/drivers/leds/rgb/leds-mt6370-rgb.c +++ b/drivers/leds/rgb/leds-mt6370-rgb.c @@ -149,7 +149,6 @@ struct mt6370_priv { struct regmap_field *fields[F_MAX_FIELDS]; const struct reg_field *reg_fields; const struct linear_range *ranges; - struct reg_cfg *reg_cfgs; const struct mt6370_pdata *pdata; unsigned int leds_count; unsigned int leds_active; -- 2.44.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel