Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc667675 authored by Guru Das Srinagesh's avatar Guru Das Srinagesh
Browse files

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: default avatarGuru Das Srinagesh <gurus@codeaurora.org>
parent 0afd6cbe
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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[] = {