aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/fbtft/fbtft.h
diff options
context:
space:
mode:
authorKsenija Stanojevic <ksenija.stanojevic@gmail.com>2015-10-07 22:06:55 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-08 10:50:27 +0100
commit367e8560e8d7a62d96e9b1d644028a3816e04206 (patch)
treedfa5ef5fb8e96a8001b2ae263a9da0152da7f3ce /drivers/staging/fbtft/fbtft.h
parentStaging: speakup: Use ARRAY_SIZE macro (diff)
downloadlinux-dev-367e8560e8d7a62d96e9b1d644028a3816e04206.tar.xz
linux-dev-367e8560e8d7a62d96e9b1d644028a3816e04206.zip
Staging: fbtbt: Replace timespec with ktime_t
struct timespec will overflow in year 2038, so replace it with ktime_t. And replace functions that use struct timespec, timespec_sub with ktime_sub. Also use monotonic time instead of real time, by replacing getnstimeofday with ktime_get, to be more robust against leap seconds and settimeofday() calls. Signed-off-by: Ksenija Stanojevic <ksenija.stanojevic@gmail.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fbtft/fbtft.h')
-rw-r--r--drivers/staging/fbtft/fbtft.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/fbtft/fbtft.h b/drivers/staging/fbtft/fbtft.h
index 6dd42b28d594..20e69f0b5cb0 100644
--- a/drivers/staging/fbtft/fbtft.h
+++ b/drivers/staging/fbtft/fbtft.h
@@ -246,7 +246,7 @@ struct fbtft_par {
} gamma;
unsigned long debug;
bool first_update_done;
- struct timespec update_time;
+ ktime_t update_time;
bool bgr;
void *extra;
};