Re: [PATCHv3 2/4] iio: dht11: add comment to make checkpatch.pl --strict happy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/07/15 14:39, Harald Geyer wrote:
> Explain why the driver needs a mutex.
> 
> Signed-off-by: Harald Geyer <harald@xxxxxxxxx>
Applied to the togreg branch of iio.git.

Thanks,

Jonathan
> ---
>  drivers/iio/humidity/dht11.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> 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;
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux