diff options
author | Ondrej Mosnacek <omosnace@redhat.com> | 2018-07-13 08:06:42 -0400 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2018-07-19 20:08:05 -0400 |
commit | 985e695074d35768cb04d65f58bca45f7bf1a99d (patch) | |
tree | 3d473a4a36fe660fd64cdabde116d57ff8434574 /include/linux/timekeeping.h | |
parent | 86b2dcd4f02b86f6b5927fc0adcac777825f4030 (diff) |
timekeeping/ntp: Constify some function arguments
Add 'const' to some function arguments and variables to make it easier
to read the code.
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Miroslav Lichvar <mlichvar@redhat.com>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
[jstultz: Also fixup pre-existing checkpatch warnings for
prototype arguments with no variable name]
Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'include/linux/timekeeping.h')
-rw-r--r-- | include/linux/timekeeping.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/timekeeping.h b/include/linux/timekeeping.h index 86bc2026efce..edace6b656e9 100644 --- a/include/linux/timekeeping.h +++ b/include/linux/timekeeping.h | |||
@@ -177,7 +177,7 @@ static inline time64_t ktime_get_clocktai_seconds(void) | |||
177 | extern bool timekeeping_rtc_skipsuspend(void); | 177 | extern bool timekeeping_rtc_skipsuspend(void); |
178 | extern bool timekeeping_rtc_skipresume(void); | 178 | extern bool timekeeping_rtc_skipresume(void); |
179 | 179 | ||
180 | extern void timekeeping_inject_sleeptime64(struct timespec64 *delta); | 180 | extern void timekeeping_inject_sleeptime64(const struct timespec64 *delta); |
181 | 181 | ||
182 | /* | 182 | /* |
183 | * struct system_time_snapshot - simultaneous raw/real time capture with | 183 | * struct system_time_snapshot - simultaneous raw/real time capture with |