|
@@ -232,6 +232,9 @@ static ssize_t set_fan_div(struct device *dev,
|
|
|
/* Update the value */
|
|
/* Update the value */
|
|
|
reg = (reg & 0x3F) | (val << 6);
|
|
reg = (reg & 0x3F) | (val << 6);
|
|
|
|
|
|
|
|
|
|
+ /* Update the cache */
|
|
|
|
|
+ data->fan_div[attr->index] = reg;
|
|
|
|
|
+
|
|
|
/* Write value */
|
|
/* Write value */
|
|
|
i2c_smbus_write_byte_data(client,
|
|
i2c_smbus_write_byte_data(client,
|
|
|
ADM1029_REG_FAN_DIV[attr->index], reg);
|
|
ADM1029_REG_FAN_DIV[attr->index], reg);
|