[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <124ddf04-f9f9-478d-8bb7-0148a464af79@roeck-us.net>
Date: Sun, 2 Mar 2025 08:55:28 -0800
From: Guenter Roeck <linux@...ck-us.net>
To: Alexander Stein <alexander.stein@...tq-group.com>
Cc: Jean Delvare <jdelvare@...e.com>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>, linux-hwmon@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 4/5] hwmon: (gpio-fan) Remove unnecessary comment
On Mon, Feb 10, 2025 at 03:59:32PM +0100, Alexander Stein wrote:
> __set_fan_ctrl() is only called by set_fan_speed(), which ensures
> fan_data->lock is held already.
>
The comment is still valid, and it does not hurt to have it.
Guenter
> Signed-off-by: Alexander Stein <alexander.stein@...tq-group.com>
> ---
> drivers/hwmon/gpio-fan.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/hwmon/gpio-fan.c b/drivers/hwmon/gpio-fan.c
> index 322b161d5ca1f..4614d0ad86b3a 100644
> --- a/drivers/hwmon/gpio-fan.c
> +++ b/drivers/hwmon/gpio-fan.c
> @@ -100,7 +100,6 @@ static int fan_alarm_init(struct gpio_fan_data *fan_data)
> * Control GPIOs.
> */
>
> -/* Must be called with fan_data->lock held, except during initialization. */
> static void __set_fan_ctrl(struct gpio_fan_data *fan_data, int ctrl_val)
> {
> int i;
Powered by blists - more mailing lists