From cf12f69291e21d3ca835d9556df246c836bb64d9 Mon Sep 17 00:00:00 2001 From: Joshua Crofts Date: Sun, 14 Jun 2026 15:19:10 +0200 Subject: [PATCH] iio: light: opt3001: add comment to mutex Add comment to mutex per checkpatch.pl report. While we're at it, add a comment to bool ok_to_ignore_lock. No functional change. Reviewed-by: Maxwell Doose Signed-off-by: Joshua Crofts Reviewed-by: Andy Shevchenko Signed-off-by: Jonathan Cameron --- drivers/iio/light/opt3001.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/iio/light/opt3001.c b/drivers/iio/light/opt3001.c index 9594c9615dfb..2bce6cd5f4e4 100644 --- a/drivers/iio/light/opt3001.c +++ b/drivers/iio/light/opt3001.c @@ -103,7 +103,13 @@ struct opt3001_chip_info { struct opt3001 { struct i2c_client *client; + /* + * Ensure data capture and read-modify-write sequences are + * not interrupted. + */ struct mutex lock; + + /* Allows for IRQs to bypass locking mechanism */ bool ok_to_ignore_lock; bool result_ready; wait_queue_head_t result_ready_queue;