summaryrefslogtreecommitdiffstats
path: root/drivers/iio/humidity
diff options
context:
space:
mode:
authorHarald Geyer <harald@ccbib.org>2015-07-07 13:39:29 +0000
committerJonathan Cameron <jic23@kernel.org>2015-07-20 18:41:18 +0100
commita7126003b6dd47c0088d952734379ef471156c5f (patch)
tree6d45d2484841bcfdf64a391a9101db5f85443e18 /drivers/iio/humidity
parent889c5e9b668670c91dcd3a8f2b15a0b2086f4827 (diff)
downloadop-kernel-dev-a7126003b6dd47c0088d952734379ef471156c5f.zip
op-kernel-dev-a7126003b6dd47c0088d952734379ef471156c5f.tar.gz
iio: dht11: add comment to make checkpatch.pl --strict happy
Explain why the driver needs a mutex. Signed-off-by: Harald Geyer <harald@ccbib.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/humidity')
-rw-r--r--drivers/iio/humidity/dht11.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/humidity/dht11.c b/drivers/iio/humidity/dht11.c
index 343d26a..bb5ad57 100644
--- a/drivers/iio/humidity/dht11.c
+++ b/drivers/iio/humidity/dht11.c
@@ -63,6 +63,7 @@ struct dht11 {
int irq;
struct completion completion;
+ /* The iio sysfs interface doesn't prevent concurrent reads: */
struct mutex lock;
s64 timestamp;
OpenPOWER on IntegriCloud