staging: gdm72xx: Replace timeval with ktime_t
authorArnd Bergmann <arnd@arndb.de>
Wed, 25 Nov 2015 15:09:10 +0000 (16:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 27 Dec 2015 01:13:33 +0000 (17:13 -0800)
commit2bc29a1abc5c1b89576f8ae864cce9c07d18fd44
tree6d2e107e9e0a4efac9a6603ac19d27ab5bf01508
parent02c34ccc1d2d528d2de2897881b97933363432b5
staging: gdm72xx: Replace timeval with ktime_t

struct sdu_stamp in the gdm_sdio.h is a timeval type.
'struct timeval now' is used for calculating elapsed time.

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 gdm72xx driver to use ktime_t.

ktime_get() is  better than using do_gettimeofday(),
because it uses the monotonic clock. ktime_sub
are used to subtract two ktime variables.

Build tested this by saying Y to WIMAX_GDM72XX.

Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm72xx/gdm_sdio.c
drivers/staging/gdm72xx/gdm_sdio.h