mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
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:
parent
0afd6cbeae
commit
bc667675e0
1 changed files with 2 additions and 2 deletions
|
|
@ -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[] = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue