From: Greg Kroah-Hartman Date: Wed, 4 Feb 2009 23:05:05 +0000 (-0800) Subject: Staging: android: fix up units in timed_gpio X-Git-Tag: v2.6.29-rc5~46^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d88dfb8dc4bfb66066e7c68727c219faaa541206;p=platform%2Fkernel%2Flinux-3.10.git 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 Cc: Mike Lockwood Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/android/timed_gpio.c b/drivers/staging/android/timed_gpio.c index 903270c..33daff0 100644 --- a/drivers/staging/android/timed_gpio.c +++ b/drivers/staging/android/timed_gpio.c @@ -50,7 +50,7 @@ static ssize_t gpio_enable_show(struct device *dev, struct device_attribute *att if (hrtimer_active(&gpio_data->timer)) { ktime_t r = hrtimer_get_remaining(&gpio_data->timer); struct timeval t = ktime_to_timeval(r); - remaining = t.tv_sec * 1000 + t.tv_usec; + remaining = t.tv_sec * 1000 + t.tv_usec / 1000; } else remaining = 0;