commit | 78d89ef40c2ff7265df077e20c4d76be7d415204 | [log] [tgz] |
---|---|---|
author | Andrew Morton <[email protected]> | Tue Mar 31 15:24:48 2009 -0700 |
committer | Linus Torvalds <[email protected]> | Wed Apr 01 08:59:24 2009 -0700 |
tree | 68503b0252682a496495b7adb46f6aa278db88ae | |
parent | 47367a3ba425d70467af0009782098235ddbf204 [diff] |
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 <[email protected]> Acked-by: Alessandro Zummo <[email protected]> Cc: stephane eranian <[email protected]> Cc: "Luck, Tony" <[email protected]> Cc: David Brownell <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>