summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/ltc2990.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/ltc2990.c')
-rw-r--r--drivers/hwmon/ltc2990.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/ltc2990.c b/drivers/hwmon/ltc2990.c
index fcd31c4fc15e..689f788b8563 100644
--- a/drivers/hwmon/ltc2990.c
+++ b/drivers/hwmon/ltc2990.c
@@ -147,7 +147,7 @@ static ssize_t ltc2990_value_show(struct device *dev,
if (unlikely(ret < 0))
return ret;
- return snprintf(buf, PAGE_SIZE, "%d\n", value);
+ return sysfs_emit(buf, "%d\n", value);
}
static umode_t ltc2990_attrs_visible(struct kobject *kobj,