Merge with /home/hs/SC3/u-boot

Some code cleanup.
This commit is contained in:
Wolfgang Denk
2007-01-15 13:41:04 +01:00
committed by Wolfgang Denk
20 changed files with 2285 additions and 21 deletions

View File

@@ -134,8 +134,8 @@ int dtt_init (void)
} /* dtt_init() */
#define TEMP_FROM_REG(temp) \
((temp)<256?((((temp)&0x1fe) >> 1) * 10) + ((temp) & 1) * 5: \
((((temp)&0x1fe) >> 1) -255) * 10 - ((temp) & 1) * 5) \
((temp)<256?((((temp)&0x1fe) >> 1) * 10) + ((temp) & 1) * 5: \
((((temp)&0x1fe) >> 1) -255) * 10 - ((temp) & 1) * 5) \
int dtt_get_temp(int sensor)
{