Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1638454
| From | Harinath Nampally <harinath922@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 1/3] staging: iio: meter: Add the comment for mutex definition. |
| Date | 2017-05-10 01:50 +0200 |
| Message-ID | <tFn3b-i8-5@gated-at.bofh.it> (permalink) |
| References | <tF84a-77W-27@gated-at.bofh.it> <tFn3b-i8-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
This patch fixes below checkpatch.pl warning:
CHECK: struct mutex definition without comment
Signed-off-by: Harinath Nampally <harinath922@gmail.com>
---
Changes in v2:
- Removed the extra comment for mutex in the struct.
drivers/staging/iio/meter/ade7753.c | 3 ++-
1 file changed, 1 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;
struct mutex buf_lock;
u8 tx[ADE7753_MAX_TX] ____cacheline_aligned;
u8 rx[ADE7753_MAX_RX];
--
2.7.4
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/3] coding style warnings fixes Harinath Nampally <harinath922@gmail.com> - 2017-05-09 04:00 +0200
[PATCH 1/3] staging: iio: meter: Add the comment for mutex definition Harinath Nampally <harinath922@gmail.com> - 2017-05-09 04:00 +0200
Re: [PATCH 1/3] staging: iio: meter: Add the comment for mutex definition Dan Carpenter <dan.carpenter@oracle.com> - 2017-05-09 09:50 +0200
[PATCH v2 1/3] staging: iio: meter: Add the comment for mutex definition. Harinath Nampally <harinath922@gmail.com> - 2017-05-10 01:50 +0200
[PATCH v2 3/3] staging: iio: meter: Replace symbolic permissions with octal permissions. Harinath Nampally <harinath922@gmail.com> - 2017-05-10 01:50 +0200
[PATCH v2 0/3] coding style warnings fixes Harinath Nampally <harinath922@gmail.com> - 2017-05-10 01:50 +0200
[PATCH v2 2/3] staging: iio: meter: Fix the identations for proper alignments. Harinath Nampally <harinath922@gmail.com> - 2017-05-10 01:50 +0200
csiph-web