Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp60419lqm; Tue, 30 Apr 2024 12:45:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUJa/Q0hiz/nHa3wJfq/yWPivsqhUJoaJUahJJhFM4tnURVx1m5Ia0HgXOKqOpLTgLJfGCnjg6AtzVRHi2bTqTNs9Xuw5OErxruVJHucw== X-Google-Smtp-Source: AGHT+IHLkEAU3n4tqv++lzQHplJzT+Jlt0QYk+OcqyXKoRsS6Wdhy7dtrLoW/lLDHL0g71Gkj4VQ X-Received: by 2002:a05:6a00:1145:b0:6eb:3c34:34bd with SMTP id b5-20020a056a00114500b006eb3c3434bdmr751887pfm.3.1714506305226; Tue, 30 Apr 2024 12:45:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714506305; cv=pass; d=google.com; s=arc-20160816; b=u5la3Lte6fsdhWcCaPiR3a9tjKH+ZUBHWNoh5Afze5MUCdLNM/QCdP0vgFc8hgJoyz hn0KZJzH1uPw2GsYCPUVH9FppRWQex+IwfOVzbGVkQpiYS+LT4uuoVUfDJYDdXMVk9JS Q2QP5b0eQLYHnfMtYeBuzkVHJ21t9PpN1/5u5jkBB+W8uOwfU14ZRppZRiaz5vuDbjG8 DaUcQcqxJ86TtA97DGTB5dEKp+1/gmm9HOe5hI60gDfKdyemQxVa4a8BNsL1LlB5C9ZX ctZR8Bm4mTjCmb2sgBl2cbhI14R9xPS/z0/XxezcS5EXMfx0OYbq31jJQD3uJHe/4cEt aKXw== 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=skKo5kEoG79r6I+m+tXF3MUHJgIN3Agmwa3aOsSEA5o=; fh=uvLh/GrgzT2qgO+ITZsnuDeWKAVU38ihDttFYI8tvmI=; b=BvWDq/Amis0+jnRvjwMTQmp784MCacTLA7VIrzEGwm2KkLIfdPUgI64PrVCT2AISho +rwp4F2swt9uJUeyGIXark8BUPnYSzw9M2CSI1etG20v2Ni/Dr8FdGmUlMph2XSC+tXc +IvL55/I2/4i2uEHkR/hIJGRHnFsjqj+oLVTrvjdkGFWxYpZCeKt1Mc4yXMjz/jr5XbB MwG0tJ4flgv2euBOVSlOiLBakm7n6wXgERfHsBK1LlVIuOz2R0UWlWRBpKYGmiN8jcZM dgVB/lB+Pkso02/QhTzOvmxxSPemgUDRgoFKtoZ+n2OX5mrUN2c9dnUdS1n+9qeKmHQL t64Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=Y6qkihPR; 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-164652-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164652-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=wanadoo.fr Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 131-20020a630089000000b005f4148684easi22918603pga.545.2024.04.30.12.45.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 12:45:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164652-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=Y6qkihPR; 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-164652-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164652-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3655DB214FB for ; Tue, 30 Apr 2024 19:44:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC90D199E9E; Tue, 30 Apr 2024 19:44:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="Y6qkihPR" Received: from smtp.smtpout.orange.fr (smtp-27.smtpout.orange.fr [80.12.242.27]) (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 B20F2194C9D; Tue, 30 Apr 2024 19:44:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.12.242.27 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714506289; cv=none; b=uGqetebOp5hhi3gn8zC0+iWB5TO+7ZUj5zbd/68TBOMMYwYQGDROwcY0gKwfmjOBtN7e3licKXKx/VxjJax17CLgPEr6QRTVeUwIGE7r+C45mHB+/neb3VYAjqHIIEUhmJ0CsTlQMQJPrhyOENud/tLlNCs2Gcm1npzMpgC5bZY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714506289; c=relaxed/simple; bh=Yh/0kVomvA82YnCAEzDosws8iXCLFew+YFzQx0chFOY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HFFWHWAFDhUePmCUObxjVzJm5Gfdjq+PNgl2NNFjqR+rJtSdLwsc6NPU71zGw+z62tZOU/DqqqXeA9zPhkE1e9fituLAH6d+M1bFBS0fvoLukqM1rDHiPyC/7fXhRfdOX6k1TUcPXz5jyMW7ZnOXdwudzaMmS+65/nWDK8i5R1w= 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=Y6qkihPR; arc=none smtp.client-ip=80.12.242.27 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 1tGXsqFYLGyax1tGXss3dW; Tue, 30 Apr 2024 21:35:51 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1714505751; bh=skKo5kEoG79r6I+m+tXF3MUHJgIN3Agmwa3aOsSEA5o=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=Y6qkihPRSdTI4mGkFmI3rkql6GZAFYWajX5CbOBz7NPrpMB0fZaaMx1OU0j4milP/ nBPv4d1a3bzLe6GaH6/mVP6jypYcEFUD9oI9eQVNlwEoSzipjv6GzGh2ZxUZ0HdL+b soQNlzkUmREM+hqL4f8iYZjoEkOUDVKz+3FEhTyDaVCJn2hrtCH5lV/+yz1SiYf6PO wcilfOX7XPFSrqVWGPPUb5ilCM6jtGv6DV+b7QHBrB4DAmK871udognHxQV57EZXxS We9vC8Pzli4CGyFrum4lO/Lyo4Zn2qE7KT3mPfVSyM9dTRVyVJd4b96TJy9Knh/eX6 DXiY6czAp7JQw== X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Tue, 30 Apr 2024 21:35:51 +0200 X-ME-IP: 86.243.17.157 From: Christophe JAILLET To: Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Jean Delvare , Guenter Roeck Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , openbmc@lists.ozlabs.org, linux-hwmon@vger.kernel.org Subject: [PATCH 1/2] hwmon: (npcm750-pwm-fan) Remove an unused field in struct npcm7xx_cooling_device Date: Tue, 30 Apr 2024 21:35:37 +0200 Message-ID: <74eee8aa739f94b8c6425ce3e37a427ca92243ea.1714505655.git.christophe.jaillet@wanadoo.fr> 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 npcm7xx_cooling_device", the 'fan_clk_freq' field is unused. Remove it. Found with cppcheck, unusedStructMember. Signed-off-by: Christophe JAILLET --- Compile tested only. This field was added in the initial commit f1fd4a4db777 ("hwmon: Add NPCM7xx PWM and Fan driver") but was never used. --- drivers/hwmon/npcm750-pwm-fan.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/hwmon/npcm750-pwm-fan.c b/drivers/hwmon/npcm750-pwm-fan.c index 904816abb7c4..6d92a3b89198 100644 --- a/drivers/hwmon/npcm750-pwm-fan.c +++ b/drivers/hwmon/npcm750-pwm-fan.c @@ -197,7 +197,6 @@ struct npcm7xx_pwm_fan_data { void __iomem *fan_base; int pwm_modules; unsigned long pwm_clk_freq; - unsigned long fan_clk_freq; struct clk *pwm_clk; struct clk *fan_clk; struct mutex pwm_lock[NPCM7XX_PWM_MAX_MODULES]; -- 2.44.0