projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
889c5e9
)
iio: dht11: add comment to make checkpatch.pl --strict happy
author
Harald Geyer
<harald@ccbib.org>
Tue, 7 Jul 2015 13:39:29 +0000
(13:39 +0000)
committer
Jonathan Cameron
<jic23@kernel.org>
Mon, 20 Jul 2015 17:41:18 +0000
(18:41 +0100)
Explain why the driver needs a mutex.
Signed-off-by: Harald Geyer <harald@ccbib.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/humidity/dht11.c
patch
|
blob
|
history
diff --git
a/drivers/iio/humidity/dht11.c
b/drivers/iio/humidity/dht11.c
index 343d26af1dd872a463b841c6c9a78b40841538c3..bb5ad57ed2a29feea0b06003c23c7a3e875a35b7 100644
(file)
--- 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;