Re: [PATCH v2 10/10] iio: light: opt3001: add comment to mutex
From: Maxwell Doose
Date: Sun May 17 2026 - 14:06:31 EST
On Tue, May 12, 2026 at 5:58 AM Joshua Crofts via B4 Relay
<devnull+joshua.crofts1.gmail.com@xxxxxxxxxx> wrote:
>
> From: Joshua Crofts <joshua.crofts1@xxxxxxxxx>
>
> Add comment to mutex per checkpatch.pl report.
>
> No functional change.
>
> Signed-off-by: Joshua Crofts <joshua.crofts1@xxxxxxxxx>
> ---
> drivers/iio/light/opt3001.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/iio/light/opt3001.c b/drivers/iio/light/opt3001.c
> index 1319e5941b66bd82e4dc2badf5ea27cacbcfd54a..81afee6993d08b1126f07b1c63c3d3496d8b380c 100644
> --- a/drivers/iio/light/opt3001.c
> +++ b/drivers/iio/light/opt3001.c
> @@ -104,6 +104,7 @@ struct opt3001 {
> struct i2c_client *client;
> struct device *dev;
>
> + /* Mutex for ensuring one executed command at a time */
> struct mutex lock;
> bool ok_to_ignore_lock;
> bool result_ready;
>
> --
> 2.47.3
>
Reviewed-by: Maxwell Doose <m32285159@xxxxxxxxx>
best regards,
max