Skip to content

Commit

Permalink
hwmon: (adm1029) Add a comment for locking mutex
Browse files Browse the repository at this point in the history
Checkpatch complains that mutex does not have any comment.
This patch fix that.

Signed-off-by: Corentin Labbe <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
  • Loading branch information
montjoie authored and groeck committed Feb 18, 2019
1 parent a15ad19 commit 8241f88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/adm1029.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit 8241f88

Please sign in to comment.