]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] MVME16x RTC const
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 13 Apr 2004 00:30:39 +0000 (17:30 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 13 Apr 2004 00:30:39 +0000 (17:30 -0700)
MVME16x RTC: Make days_in_mo[] const

arch/m68k/mvme16x/rtc.c

index 1196442f80dcf05b2ba4e8cabfe2e3c3784a3e46..3efc26d251cf5cb8bcd8c66a270b174d50a7d4eb 100644 (file)
@@ -33,7 +33,7 @@
 #define BCD2BIN(val) (((val)&15) + ((val)>>4)*10)
 #define BIN2BCD(val) ((((val)/10)<<4) + (val)%10)
 
-static unsigned char days_in_mo[] =
+static const unsigned char days_in_mo[] =
 {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
 
 static atomic_t rtc_ready = ATOMIC_INIT(1);