summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/adm1029.c
diff options
context:
space:
mode:
authorCorentin Labbe <clabbe.montjoie@gmail.com>2019-01-18 15:03:29 +0100
committerGuenter Roeck <linux@roeck-us.net>2019-02-18 23:23:29 +0100
commit8241f885750a3fc7325b84711ee6895ae51b261e (patch)
tree86985e7a8f895e326a903f1616149669edbfb7aa /drivers/hwmon/adm1029.c
parenthwmon: (adm1029) Fix function alignment (diff)
downloadlinux-8241f885750a3fc7325b84711ee6895ae51b261e.tar.xz
linux-8241f885750a3fc7325b84711ee6895ae51b261e.zip
hwmon: (adm1029) Add a comment for locking mutex
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>
Diffstat (limited to 'drivers/hwmon/adm1029.c')
-rw-r--r--drivers/hwmon/adm1029.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/adm1029.c b/drivers/hwmon/adm1029.c
index e9fe4fc3489e..e561279aea21 100644
--- a/drivers/hwmon/adm1029.c
+++ b/drivers/hwmon/adm1029.c
@@ -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 */