timekeeping: Minor fixup for timespec64->timespec assignment
[firefly-linux-kernel-4.4.55.git] / drivers / hwmon / w83l786ng.c
index 6ed76ceb92709078497571ad4cb6f8740d3490bb..32487c19cbfc5c2ed5dccea9dcfd7256727786bf 100644 (file)
@@ -249,7 +249,7 @@ static ssize_t show_##reg(struct device *dev, struct device_attribute *attr, \
        int nr = to_sensor_dev_attr(attr)->index; \
        struct w83l786ng_data *data = w83l786ng_update_device(dev); \
        return sprintf(buf, "%d\n", \
-               FAN_FROM_REG(data->fan[nr], DIV_FROM_REG(data->fan_div[nr]))); \
+               FAN_FROM_REG(data->reg[nr], DIV_FROM_REG(data->fan_div[nr]))); \
 }
 
 show_fan_reg(fan);