* [PATCH v3] staging: iio: cdc: ad7150: add comment to mutex
@ 2016-09-28 18:09 Anchal Jain
2016-10-02 15:11 ` [Outreachy kernel] " Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Anchal Jain @ 2016-09-28 18:09 UTC (permalink / raw)
To: gregkh; +Cc: michael.hennerich, outreachy-kernel
Fix the checkpatch.pl issues:
CHECK: struct mutex definition without comment
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] 2+ messages in thread
* Re: [Outreachy kernel] [PATCH v3] staging: iio: cdc: ad7150: add comment to mutex
2016-09-28 18:09 [PATCH v3] staging: iio: cdc: ad7150: add comment to mutex Anchal Jain
@ 2016-10-02 15:11 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2016-10-02 15:11 UTC (permalink / raw)
To: Anchal Jain; +Cc: michael.hennerich, outreachy-kernel
On Wed, Sep 28, 2016 at 11:39:51PM +0530, Anchal Jain wrote:
> Fix the checkpatch.pl issues:
> CHECK: struct mutex definition without comment
>
> 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 */
> };
>
> /*
Same review comment here.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-10-02 15:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-28 18:09 [PATCH v3] staging: iio: cdc: ad7150: add comment to mutex Anchal Jain
2016-10-02 15:11 ` [Outreachy kernel] " Greg KH
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.