hwmon: (nct6775) Fix comment in the description of pwm_mode
authorGuenter Roeck <linux@roeck-us.net>
Mon, 18 Jun 2018 16:21:46 +0000 (09:21 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 9 Jul 2018 03:08:13 +0000 (20:08 -0700)
Commit 415eb2a1aaa488 ("hwmon: (nct6775) Fix writing pwmX_mode") changed
the definition of the pwm_mode variable, but did not update the comment
describing it.

Reported-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Cc: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/nct6775.c

index f9d1349..3714990 100644 (file)
@@ -1050,8 +1050,8 @@ struct nct6775_data {
        u64 beeps;
 
        u8 pwm_num;     /* number of pwm */
-       u8 pwm_mode[NUM_FAN];   /* 1->DC variable voltage,
-                                * 0->PWM variable duty cycle
+       u8 pwm_mode[NUM_FAN];   /* 0->DC variable voltage,
+                                * 1->PWM variable duty cycle
                                 */
        enum pwm_enable pwm_enable[NUM_FAN];
                        /* 0->off