[PATCH v2 10/10] iio: light: opt3001: add comment to mutex

From: Joshua Crofts via B4 Relay

Date: Tue May 12 2026 - 07:00:37 EST


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