Message ID | 74eee8aa739f94b8c6425ce3e37a427ca92243ea.1714505655.git.christophe.jaillet@wanadoo.fr (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | [1/2] hwmon: (npcm750-pwm-fan) Remove an unused field in struct npcm7xx_cooling_device | expand |
On Tue, Apr 30, 2024 at 09:35:37PM +0200, Christophe JAILLET wrote: > In "struct npcm7xx_cooling_device", the 'fan_clk_freq' field is unused. > Remove it. > > Found with cppcheck, unusedStructMember. > > Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Applied. Thanks, Guenter
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];
In "struct npcm7xx_cooling_device", the 'fan_clk_freq' field is unused. Remove it. Found with cppcheck, unusedStructMember. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> --- 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(-)