diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2009-03-31 22:24:48 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-01 15:59:24 (GMT) |
commit | 78d89ef40c2ff7265df077e20c4d76be7d415204 (patch) | |
tree | 68503b0252682a496495b7adb46f6aa278db88ae /drivers/rtc/rtc-efi.c | |
parent | 47367a3ba425d70467af0009782098235ddbf204 (diff) | |
download | linux-fsl-qoriq-78d89ef40c2ff7265df077e20c4d76be7d415204.tar.xz |
rtc: convert LEAP_YEAR into an inline
- the LEAP_YEAR macro is buggy - it references its arg multiple times.
Fix this by turning it into a C function.
- give it a more approriate name
- Move it to rtc.h so that other .c files can use it, instead of copying it.
Cc: dann frazier <dannf@hp.com>
Acked-by: Alessandro Zummo <alessandro.zummo@towertech.it>
Cc: stephane eranian <eranian@googlemail.com>
Cc: "Luck, Tony" <tony.luck@intel.com>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-efi.c')
0 files changed, 0 insertions, 0 deletions