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 <gurus@codeaurora.org>
This commit is contained in:
Guru Das Srinagesh 2020-08-24 14:22:00 -07:00
parent 0afd6cbeae
commit bc667675e0

View File

@ -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[] = {