hwmon: (adm1029) Add a comment for locking mutex
authorCorentin Labbe <clabbe.montjoie@gmail.com>
Fri, 18 Jan 2019 14:03:29 +0000 (15:03 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 18 Feb 2019 22:23:29 +0000 (14:23 -0800)
Checkpatch complains that mutex does not have any comment.
This patch fix that.

Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/adm1029.c

index e9fe4fc3489e9961f5c3924ea4232b4510c9e619..e561279aea21bd037f734da9b859efe238a4932f 100644 (file)
@@ -108,7 +108,7 @@ static const u8 ADM1029_REG_FAN_DIV[] = {
 
 struct adm1029_data {
        struct i2c_client *client;
-       struct mutex update_lock;
+       struct mutex update_lock; /* protect register access */
        char valid;             /* zero until following fields are valid */
        unsigned long last_updated;     /* in jiffies */