aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/dme1737.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/dme1737.c')
-rw-r--r--drivers/hwmon/dme1737.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/dme1737.c b/drivers/hwmon/dme1737.c
index 9814d51b3af4..2c2cb1ec94c5 100644
--- a/drivers/hwmon/dme1737.c
+++ b/drivers/hwmon/dme1737.c
@@ -1134,7 +1134,7 @@ static ssize_t show_pwm(struct device *dev, struct device_attribute *attr,
1134 res = PWM_FREQ_FROM_REG(data->pwm_freq[ix]); 1134 res = PWM_FREQ_FROM_REG(data->pwm_freq[ix]);
1135 break; 1135 break;
1136 case SYS_PWM_ENABLE: 1136 case SYS_PWM_ENABLE:
1137 if (ix > 3) { 1137 if (ix >= 3) {
1138 res = 1; /* pwm[5-6] hard-wired to manual mode */ 1138 res = 1; /* pwm[5-6] hard-wired to manual mode */
1139 } else { 1139 } else {
1140 res = PWM_EN_FROM_REG(data->pwm_config[ix]); 1140 res = PWM_EN_FROM_REG(data->pwm_config[ix]);