[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <3aa61726d979dbaf85a116341d169a933218904b.1494293664.git.harinath922@gmail.com>
Date: Mon, 8 May 2017 21:59:20 -0400
From: Harinath Nampally <harinath922@...il.com>
To: jsindhu81191@...il.com
Cc: harinath922@...il.com, linux-kernel@...r.kernel.org
Subject: [PATCH 1/3] staging: iio: meter: Add the comment for mutex definition
This patch fixes below checkpatch.pl warning:
CHECK: struct mutex definition without comment
Signed-off-by: Harinath Nampally <harinath922@...il.com>
---
drivers/staging/iio/meter/ade7753.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/iio/meter/ade7753.c b/drivers/staging/iio/meter/ade7753.c
index b71fbd3..cffe6bf 100644
--- a/drivers/staging/iio/meter/ade7753.c
+++ b/drivers/staging/iio/meter/ade7753.c
@@ -78,12 +78,13 @@
/**
* struct ade7753_state - device instance specific data
* @us: actual spi_device
+ * @buf_lock: mutex to protect tx and rx
* @tx: transmit buffer
* @rx: receive buffer
- * @buf_lock: mutex to protect tx and rx
**/
struct ade7753_state {
struct spi_device *us;
+ /* mutex to protect tx and rx */
struct mutex buf_lock;
u8 tx[ADE7753_MAX_TX] ____cacheline_aligned;
u8 rx[ADE7753_MAX_RX];
--
2.7.4
Powered by blists - more mailing lists