Forráskód Böngészése

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>
Harald Geyer 10 éve
szülő
commit
a7126003b6
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      drivers/iio/humidity/dht11.c

+ 1 - 0
drivers/iio/humidity/dht11.c

@@ -63,6 +63,7 @@ struct dht11 {
 	int				irq;
 	int				irq;
 
 
 	struct completion		completion;
 	struct completion		completion;
+	/* The iio sysfs interface doesn't prevent concurrent reads: */
 	struct mutex			lock;
 	struct mutex			lock;
 
 
 	s64				timestamp;
 	s64				timestamp;