Skip to content

Commit a712600

Browse files
haraldgjic23
authored andcommitted
iio: dht11: add comment to make checkpatch.pl --strict happy
Explain why the driver needs a mutex. Signed-off-by: Harald Geyer <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 889c5e9 commit a712600

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/iio/humidity/dht11.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ struct dht11 {
6363
int irq;
6464

6565
struct completion completion;
66+
/* The iio sysfs interface doesn't prevent concurrent reads: */
6667
struct mutex lock;
6768

6869
s64 timestamp;

0 commit comments

Comments
 (0)