summaryrefslogtreecommitdiff
path: root/drivers/iio/light/veml6030.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/light/veml6030.c')
-rw-r--r--drivers/iio/light/veml6030.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/light/veml6030.c b/drivers/iio/light/veml6030.c
index de85c9b30be1..3c937c55a10d 100644
--- a/drivers/iio/light/veml6030.c
+++ b/drivers/iio/light/veml6030.c
@@ -128,7 +128,7 @@ static ssize_t in_illuminance_period_available_show(struct device *dev,
return -EINVAL;
}
- return snprintf(buf, PAGE_SIZE, "%s\n", period_values[x]);
+ return sysfs_emit(buf, "%s\n", period_values[x]);
}
static IIO_DEVICE_ATTR_RO(in_illuminance_period_available, 0);