Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1210671lqa; Mon, 29 Apr 2024 01:14:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWzYaqDPh/SfxcV1l8fwO7U2y8te58xiBBCB1QyZqe0voz1g3jQGsS3z9uMumqBJZLZs4jMcr7J0inKOwahpeglEVqKB4qwQHwD0upf2w== X-Google-Smtp-Source: AGHT+IGtLu8jI7Gw+bQcE3NMd1ah+DGQFpzJDa69047lMcIXrd9ELV86L7j4ZYxpvhHQ2dRryWfS X-Received: by 2002:a17:902:d50d:b0:1eb:e1b:737a with SMTP id b13-20020a170902d50d00b001eb0e1b737amr9616971plg.44.1714378448387; Mon, 29 Apr 2024 01:14:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714378448; cv=pass; d=google.com; s=arc-20160816; b=WPFInkcgLwoLmZnkWPm7qSDQsh8VdqlCZSGYFu7ZvRhQoqPHUW3cSwoJgK+x20Pq4t gWl0jPg0gwvtBwSj+hutDJH0EyFKXBIllOqGt5gWlgG5z8oTQ+0bu7ri19M8pCGyiSbq vXlpGyggJ4Gim6eMsO7ZenYUNIkvmUaEwppaojah9i3jWQg2Nb2cyO7f7eZBhu2T7ulN xtrAJwEJqHwVThaCQ2eYKboMRF5Yg9idM582o+JZaQlbtVt0ES6J8Xvu/eEsOLCbJDY3 VQWcmyWl3SLtK/To0fRhsQP2Aic+T2V+qpwMAt/6hQzj/tag7a0fSIbaG203Jp4up6TT kzmQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=ccLW8G4p0SZdUcyq5g3vEvqzDaahYIMqvrLLmreu1Ow=; fh=2uIpG9CIzmWE05kfjfTTzI22Vp8f9Qs0NtsYMRrSzXY=; b=GkRhbnx5ZicjesY8dVxG44bDsftwUpF8MNgIO+cu6YsZIvT7R1A9IZzZFxbib/c3Na yPI21LJl8zgFsVak6UmyU2/KiI7UWrtx8D0rC5zwONKRvpVyqVycrTCSHf0NOpPF2flT zh2OmurTY8hu5hUeBgrIPWmNJ8WpXnMFQCaiNCvWPbNl2BPePvCi2ebq/ksCTbKTkrfH mUuwK5C42Hp1Zz40SHKzWkswglBwYvIwlmfYVwrOALk43ezA/WlJgKkWTZvtttdmeEcl MmSuuDWxaWQMbypwsq+bHSDIAOFB7Xv2MPp++xvFTr8lAygIit2SFWjj79XkIxZSTnQR wozg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Vg1xro7D; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-161896-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161896-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id c10-20020a170902724a00b001e431e864ebsi19022478pll.342.2024.04.29.01.14.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 01:14:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161896-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Vg1xro7D; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-161896-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161896-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 8027FB20D6B for ; Mon, 29 Apr 2024 08:13:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D36A31756A; Mon, 29 Apr 2024 08:13:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="Vg1xro7D" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A4E9415E8B; Mon, 29 Apr 2024 08:13:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714378427; cv=none; b=VkDodR6QUJqCb9vLPNQgoet4ZnLY6PTqLq1BooZ07EOY3ucSpdujitYwwDinGMbANlTrxSeq32kDLPcWgYG6xk1YnwiRA3rBT/Hx4uXdBU9SCIdp8pgQfKOG7SYeBnjpLuRitnBiwolU172SahwRD3NmVY8hxkS4cgngA5CZiJk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714378427; c=relaxed/simple; bh=b1SZPFe+NuDhrNOpdqekcjo4NtR3t0eI9LUZWGBoZ2U=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=h68dIK0sbdgJfhWQLp7agIkmneqInIU7tjHoQnu64+j/JkrVCVavaIj+MdtuR/7SM8pw0LyyJ1atMDv2N3KwD4SSC2i4HJbPqXvkzZRQxxGm6hyzfbQb1cif1BiF4rG5xzJ/g8OhIDH8yu0dj2chessMa6ECVmCf4iQrL+tfirc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=Vg1xro7D; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1714378423; bh=b1SZPFe+NuDhrNOpdqekcjo4NtR3t0eI9LUZWGBoZ2U=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Vg1xro7DPLUieeWf4MObveLWKyTiikAkK/pIXlJjlaVz1tL7cQAaQZ/D4oqAM4zxl r8HgExOz8TWgAjPjIxNuvBgu4ocTRCXoe8gtXqDUEARqmN+YrYdXZLXI9l8ql1MN+8 1UdT9QCggwJOAhtCkRKpui32Xh+CIYbhY6sVlUF67I1mH0QdznTYVqDkbvnoXSwpxK zujgqfYEcjqfs0nQnJuNXOWJcbALcZY3vPvko8QDLBQb63YNEE57FZZNhUPaL1OujJ ZJJgXw9809tFTIFZQUI5dJ5p6oLHAZnuPjwxMfyIY/I6AgKlJdGDNkurH9MsNO9/P9 S8lBqPVKa4y1Q== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 1BBF6378134F; Mon, 29 Apr 2024 08:13:43 +0000 (UTC) Message-ID: <16df315e-8a05-49a4-ac07-d1ed150c9317@collabora.com> Date: Mon, 29 Apr 2024 10:13:42 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] leds: mt6370: Remove an unused field in struct mt6370_priv To: Christophe JAILLET , Pavel Machek , Lee Jones , Matthias Brugger Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-leds@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org References: From: AngeloGioacchino Del Regno Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Il 28/04/24 20:27, Christophe JAILLET ha scritto: > 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. Sure > > Found with cppcheck, unusedStructMember. > > So, remove it. Again?! :-P > > Signed-off-by: Christophe JAILLET Anyway, this commit misses a Fixes tag; please add the relevant one, after which, Reviewed-by: AngeloGioacchino Del Regno > --- > 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;