mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-09-11 12:34:43 -04:00
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 <m32285159@gmail.com> Signed-off-by: Joshua Crofts <joshua.crofts1@gmail.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
committed by
Jonathan Cameron
parent
a4e80b835f
commit
cf12f69291
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user