It shoudl be same as with other functions to use adt7475_read. So change to use it instead of i2c_smbus_read_byte_data.
Signed-off-by: Tokunori Ikegami <[email protected]> Cc: Chris Packham <[email protected]> Cc: [email protected] --- drivers/hwmon/adt7475.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/adt7475.c b/drivers/hwmon/adt7475.c index a40eb62ee6b1..bad250729e99 100644 --- a/drivers/hwmon/adt7475.c +++ b/drivers/hwmon/adt7475.c @@ -1012,7 +1012,7 @@ static ssize_t pwm_use_point2_pwm_at_crit_store(struct device *dev, return -EINVAL; mutex_lock(&data->lock); - data->config4 = i2c_smbus_read_byte_data(client, REG_CONFIG4); + data->config4 = adt7475_read(REG_CONFIG4); if (val) data->config4 |= CONFIG4_MAXDUTY; else -- 2.16.1 -- To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
