Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: android: fix up units in timed_gpio

The last build fix I did messed up the units of the sysfs file.

This puts them back to be milliseconds, like they originally were.


Thanks to Juha Motorsportcom for pointing this out.

Reported-by: Juha Motorsportcom <juha_motorsportcom@luukku.com>
Cc: Mike Lockwood <lockwood@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Greg Kroah-Hartman and committed by
Greg Kroah-Hartman
d88dfb8d 5701c051

+1 -1
+1 -1
drivers/staging/android/timed_gpio.c
··· 50 50 if (hrtimer_active(&gpio_data->timer)) { 51 51 ktime_t r = hrtimer_get_remaining(&gpio_data->timer); 52 52 struct timeval t = ktime_to_timeval(r); 53 - remaining = t.tv_sec * 1000 + t.tv_usec; 53 + remaining = t.tv_sec * 1000 + t.tv_usec / 1000; 54 54 } else 55 55 remaining = 0; 56 56