summaryrefslogtreecommitdiff
path: root/drivers/hwmon/max31827.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/max31827.c')
-rw-r--r--drivers/hwmon/max31827.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/max31827.c b/drivers/hwmon/max31827.c
index 48e8f8ba4d05..a31c7b655da1 100644
--- a/drivers/hwmon/max31827.c
+++ b/drivers/hwmon/max31827.c
@@ -445,7 +445,7 @@ static ssize_t temp1_resolution_show(struct device *dev,
val = FIELD_GET(MAX31827_CONFIGURATION_RESOLUTION_MASK, val);
- return scnprintf(buf, PAGE_SIZE, "%u\n", max31827_resolutions[val]);
+ return sysfs_emit(buf, "%u\n", max31827_resolutions[val]);
}
static ssize_t temp1_resolution_store(struct device *dev,