[PATCH v3 7/7] iio: light: opt3001: add comment to mutex
From: Joshua Crofts via B4 Relay
Date: Thu May 21 2026 - 06:05:57 EST
From: Joshua Crofts <joshua.crofts1@xxxxxxxxx>
Add comment to mutex per checkpatch.pl report.
No functional change.
Reviewed-by: Maxwell Doose <m32285159@xxxxxxxxx>
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 ac1c7ba5679867f6b814894680e317615f2e373b..9d24d7a23ef00d160fdae737b6ea1943576a3fcf 100644
--- a/drivers/iio/light/opt3001.c
+++ b/drivers/iio/light/opt3001.c
@@ -103,6 +103,7 @@ struct opt3001_chip_info {
struct opt3001 {
struct i2c_client *client;
+ /* Mutex for ensuring one executed command at a time */
struct mutex lock;
bool ok_to_ignore_lock;
bool result_ready;
--
2.47.3