summaryrefslogtreecommitdiff
path: root/board/rsdproto/rsdproto.c
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2007-11-16 21:01:19 -0700
committerGrant Likely <grant.likely@secretlab.ca>2007-11-16 21:01:19 -0700
commitefe33035acd5f7c13963a4d52e5aac1b68612ae4 (patch)
tree37d6ccca1c82953ae4c41451cb3ec5fe53e2dc3c /board/rsdproto/rsdproto.c
parent4d4faae65e115e327425cd514c1a35146a85166b (diff)
parent5947f6999aafa7c54c1390983d264a8463dfea8e (diff)
Merge branch 'origin' into kconfig-for-1.3.1
Conflicts: drivers/Makefile
Diffstat (limited to 'board/rsdproto/rsdproto.c')
-rw-r--r--board/rsdproto/rsdproto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/rsdproto/rsdproto.c b/board/rsdproto/rsdproto.c
index bf4fd5305f..312d4b8605 100644
--- a/board/rsdproto/rsdproto.c
+++ b/board/rsdproto/rsdproto.c
@@ -210,7 +210,7 @@ void read_RS5C372_time (struct tm *timedate)
#define BCD_TO_BIN(val) ((val)=((val)&15) + ((val)>>4)*10)
- if (i2c_read (RS5C372_PPC_I2C_ADR, 0, 1, buffer, sizeof (buffer))) {
+ if (! i2c_read (RS5C372_PPC_I2C_ADR, 0, 1, buffer, sizeof (buffer))) {
timedate->tm_sec = BCD_TO_BIN (buffer[0]);
timedate->tm_min = BCD_TO_BIN (buffer[1]);
timedate->tm_hour = BCD_TO_BIN (buffer[2]);
@@ -231,7 +231,7 @@ int read_LM84_temp (int address)
unsigned char buffer[8];
/*int rc;*/
- if (i2c_read (address, 0, 1, buffer, 1)) {
+ if (! i2c_read (address, 0, 1, buffer, 1)) {
return (int) buffer[0];
} else {
/*printf("i2c error %02x\n", rc); */