Skip to contentSkip to conversation

staging: iio: cdc: ad7150: add comment to mutex

PATCH Superseded Anchal Jain 2 participants 2 messages Sep 28, 2016 – Oct 2, 2016

Subsystems (4)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 staging: iio: cdc: ad7150: add comment to mutex

Fix the checkpatch.pl issues:
CHECK: struct mutex definition without comment

---
 drivers/staging/iio/cdc/ad7150.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/iio/cdc/ad7150.c +1 -1
index f6b9a10..13709bf 100644
@@ -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 */
 };
 
 /*
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 13 lines · Anchal Jain

Fix the checkpatch.pl issues:
CHECK: struct mutex definition without comment

---
 drivers/staging/iio/cdc/ad7150.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/iio/cdc/ad7150.c +0 -0
index f6b9a10..13709bf 100644

drivers/staging/iio/cdc/ad7150.c struct ad7150_chip_info { · line 84

Quoted 8 lines
drivers/staging/iio/cdc/ad7150.c +1 -1
@@ -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.