Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp958631lqa; Sun, 28 Apr 2024 11:27:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU6IyqMLwFE826p9othMnGgjZjjCNyGzJy+Uc6HGZp/a5k2+SEzG1ds4SFZ1f3E7DYuHA82W+9o0tcNKqQYazeIRx06pv/yVHE5yJ61dA== X-Google-Smtp-Source: AGHT+IE1/8DbBDxWFbfgC9aDF1znKexIrDJSI3X9JaKCnYwL1I76yKNkkwZExCwQ3JZme8q8z5JY X-Received: by 2002:a50:ab04:0:b0:56c:d1b:e088 with SMTP id s4-20020a50ab04000000b0056c0d1be088mr5107973edc.19.1714328877310; Sun, 28 Apr 2024 11:27:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714328877; cv=pass; d=google.com; s=arc-20160816; b=oV8YF6Oncua2wmDgctkb6zJyG6dPAxMxjxIDPwal+IqFJyzwuIO9Bk698GSxsrRYxL 4wjpGQ7JXLkfV+qkvRquccOzHTTgh4GeWmoFeu/xG8wkjO6D88dcfke5K3Olf40/puU/ J9lM5e9b5XgJYOMESOOdiObA4I1eMQdtZvL22DWqSs5FBLQ9C2YrZDsamBXXQ8DEX8tH SyjO6NtMvTKaS58T3G3ZUrwNagz4LpPZkD0Abmjy9YoZVEdQ9Yck0IwpeED41kRl0/GX ikh3KEYKEkNqljSacTGApNh+PQw/fH5LnW33U4yQwY2X/lwEPC79XkE+aZZDsKJ0N0OH yWsw== 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=HfgwZeVvsF2i06wNeH1wK9xQEXXX0R93e8MR9OP26AA=; fh=zOo0ZfbJ02wDG/kbd7RZVOwM6eTIcsnm+szQ78hvSGs=; b=L4g9uLlABxwce67mwoGK4pQ3M5xTDuqlkPe3lc36Jg4sT8LYjfbJSbSBeAHBzX8/LJ gRVjH6K/v1NUwgzhdiL037QluB6Bxr+Gk9M+11kiMdRyPEr8to/4VRG1xf9mV+/A7shs GlQAz7rag9fgbsGGlMsGzRBZOLBn02jhaIfzH4bUjkAyhCx7D4DAla+X1lVOllXKlif5 jTaajRkQwMQXVB0TkIPs54l+6i8G8bf9zGO8bXCHLE4A22wpLcI1AgD8kFwt8UTQKDc0 gkjJMtpXoQJRHMXUkQtYHzSs4/vw5iXwzIC9qE9soc9pD9nPjKtQ/UNFOwrAr5py8c++ JpnA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=ts6pYZW6; 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-161539-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161539-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. [147.75.80.249]) by mx.google.com with ESMTPS id z11-20020a50eb4b000000b00571bb7594d9si13171181edp.404.2024.04.28.11.27.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 11:27:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161539-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=ts6pYZW6; 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-161539-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161539-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 E72881F21429 for ; Sun, 28 Apr 2024 18:27:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E3C357442E; Sun, 28 Apr 2024 18:27:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="ts6pYZW6" 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 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