All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 ] staging: iio: cdc: ad7150: add comment to mutex
@ 2016-10-02 15:34 Anchal Jain
  2016-10-02 15:40 ` Greg KH
  0 siblings, 1 reply; 7+ messages in thread
From: Anchal Jain @ 2016-10-02 15:34 UTC (permalink / raw)
  To: gregkh; +Cc: jic23, outreachy-kernel

Add a comment in mutex to explain what the mutex is work here.

Signed-off-by: Anchal Jain <anchalj109@gmail.com>
---
 drivers/staging/iio/cdc/ad7150.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/iio/cdc/ad7150.c b/drivers/staging/iio/cdc/ad7150.c
index f6b9a10..13709bf 100644
--- a/drivers/staging/iio/cdc/ad7150.c
+++ b/drivers/staging/iio/cdc/ad7150.c
@@ -78,7 +78,7 @@ struct ad7150_chip_info {
 	u8 mag_timeout[2][2];
 	int old_state;
 	char *conversion_mode;
-	struct mutex state_lock;
+	struct mutex state_lock; /* protect hardware state */
 };
 
 /*
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-10-02 18:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-02 15:34 [PATCH v4 ] staging: iio: cdc: ad7150: add comment to mutex Anchal Jain
2016-10-02 15:40 ` Greg KH
2016-10-02 15:45   ` Anchal Jain
2016-10-02 15:53     ` [Outreachy kernel] " Julia Lawall
2016-10-02 16:21       ` Anchal Jain
2016-10-02 18:16         ` Alison Schofield
2016-10-02 18:25           ` Alison Schofield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.