Staging: android: Replace timeval with ktime_t in timed_gpio.c
authorSomya Anand <somyaanand214@gmail.com>
Thu, 23 Oct 2014 19:28:38 +0000 (21:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Oct 2014 02:33:05 +0000 (10:33 +0800)
commitd2b778712e3aa5258fabbb96ed05bcb073a1ce2e
tree253b890968b20ba34ae698c4e792cc38a6fbb843
parentdd28153b2a8ca216350a9f42de58cf3a966cba30
Staging: android: Replace timeval with ktime_t in timed_gpio.c

'struct timeval t' is used to return remaining time in milliseconds.

32-bit systems using 'struct timeval' will break in the year 2038,
so we have to replace that code with more appropriate types.
This patch changes the android driver to use ktime_t.

Signed-off-by: Somya Anand <somyaanand214@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/timed_gpio.c