From: Anchal Jain <anchalj109@gmail.com>
To: Michael.Hennerich@analog.com
Cc: gregkh@linuxfoundation.org, outreachy-kernel@googlegroups.com
Subject: [PATCH] staging: iio: gyro: add comment to mutex
Date: Wed, 28 Sep 2016 22:37:17 +0530 [thread overview]
Message-ID: <20160928170708.GA6196@life-desktop> (raw)
Fix the checkpatch.pl issues:
CHECK: struct mutes definition without comment
Signed-off-by: Anchal Jain <anchalj109@gmail.com>
---
drivers/staging/iio/gyro/adis16060_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/iio/gyro/adis16060_core.c b/drivers/staging/iio/gyro/adis16060_core.c
index ab816a2..96230b6 100644
--- a/drivers/staging/iio/gyro/adis16060_core.c
+++ b/drivers/staging/iio/gyro/adis16060_core.c
@@ -33,7 +33,7 @@
struct adis16060_state {
struct spi_device *us_w;
struct spi_device *us_r;
- struct mutex buf_lock;
+ struct mutex buf_lock; /* protect tx and rx */
u8 buf[3] ____cacheline_aligned;
};
--
1.9.1
next reply other threads:[~2016-09-28 17:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-28 17:07 Anchal Jain [this message]
2016-09-28 17:55 ` [Outreachy kernel] [PATCH] staging: iio: gyro: add comment to mutex Alison Schofield
2016-09-28 20:41 ` Julia Lawall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160928170708.GA6196@life-desktop \
--to=anchalj109@gmail.com \
--cc=Michael.Hennerich@analog.com \
--cc=gregkh@linuxfoundation.org \
--cc=outreachy-kernel@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.