mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-28 18:11:42 +02:00
board/etin/debris/phantom.c: Fix compile error
Fix build problem caused by commit e84aba13: "Replace BCD2BIN and BIN2BCD macros with inline functions" phantom.c:163: error: redefinition of 'bcd2bin' /home/wd/git/u-boot/work/include/bcd.h:16: error: previous definition of 'bcd2bin' was here phantom.c:168: error: redefinition of 'bin2bcd' /home/wd/git/u-boot/work/include/bcd.h:21: error: previous definition of 'bin2bcd' was here Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Sangmoon Kim <dogoil@etinsys.com>
This commit is contained in:
parent
da456b2718
commit
2dce9d63b3
@ -159,16 +159,6 @@ void rtc_reset(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
inline unsigned bcd2bin (uchar n)
|
|
||||||
{
|
|
||||||
return ((((n >> 4) & 0x0F) * 10) + (n & 0x0F));
|
|
||||||
}
|
|
||||||
|
|
||||||
inline unsigned char bin2bcd (unsigned int n)
|
|
||||||
{
|
|
||||||
return (((n / 10) << 4) | (n % 10));
|
|
||||||
}
|
|
||||||
|
|
||||||
static int get_century_flag(void)
|
static int get_century_flag(void)
|
||||||
{
|
{
|
||||||
int flag = 0;
|
int flag = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user