From bc667675e050fee3f90207bbb223e52eb99c77c3 Mon Sep 17 00:00:00 2001 From: Guru Das Srinagesh Date: Mon, 24 Aug 2020 14:22:00 -0700 Subject: [PATCH] leds: qti-flash: Show on_time and off_time in microseconds Adjust the units of on_time and off_time to microseconds to align with max_flash_timeout, which uses those units. Change-Id: I65f29175606d5571720215f196d2e08e6d6a18f0 Signed-off-by: Guru Das Srinagesh --- drivers/leds/leds-qti-flash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/leds/leds-qti-flash.c b/drivers/leds/leds-qti-flash.c index 7c458d03ca67..a4f84aacab54 100644 --- a/drivers/leds/leds-qti-flash.c +++ b/drivers/leds/leds-qti-flash.c @@ -1102,7 +1102,7 @@ static ssize_t qti_flash_on_time_show(struct device *dev, snode = container_of(led_cdev, struct flash_switch_data, cdev); - return scnprintf(buf, PAGE_SIZE, "%lu\n", snode->on_time_ms); + return scnprintf(buf, PAGE_SIZE, "%lu\n", snode->on_time_ms * 1000); } static ssize_t qti_flash_off_time_store(struct device *dev, @@ -1133,7 +1133,7 @@ static ssize_t qti_flash_off_time_show(struct device *dev, snode = container_of(led_cdev, struct flash_switch_data, cdev); - return scnprintf(buf, PAGE_SIZE, "%lu\n", snode->off_time_ms); + return scnprintf(buf, PAGE_SIZE, "%lu\n", snode->off_time_ms * 1000); } static struct device_attribute qti_flash_led_attrs[] = {