* [U-Boot] [PATCH] i2c.h: drop i2c_reg_{read, write} hack for Blackfin parts
@ 2009-02-12 1:36 Mike Frysinger
2009-02-12 7:51 ` Heiko Schocher
0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2009-02-12 1:36 UTC (permalink / raw)
To: u-boot
The Blackfin i2c driver has been rewritten thus the special ifdefs in the
common code are no longer needed.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
include/i2c.h | 14 --------------
1 files changed, 0 insertions(+), 14 deletions(-)
diff --git a/include/i2c.h b/include/i2c.h
index fad2d57..f8a59a6 100644
--- a/include/i2c.h
+++ b/include/i2c.h
@@ -159,14 +159,7 @@ static inline u8 i2c_reg_read(u8 addr, u8 reg)
printf("%s: addr=0x%02x, reg=0x%02x\n", __func__, addr, reg);
#endif
-#ifdef CONFIG_BLACKFIN
- /* This ifdef will become unneccessary in a future version of the
- * blackfin I2C driver.
- */
- i2c_read(addr, reg, 0, &buf, 1);
-#else
i2c_read(addr, reg, 1, &buf, 1);
-#endif
return buf;
}
@@ -183,14 +176,7 @@ static inline void i2c_reg_write(u8 addr, u8 reg, u8 val)
__func__, addr, reg, val);
#endif
-#ifdef CONFIG_BLACKFIN
- /* This ifdef will become unneccessary in a future version of the
- * blackfin I2C driver.
- */
- i2c_write(addr, reg, 0, &val, 1);
-#else
i2c_write(addr, reg, 1, &val, 1);
-#endif
}
/*
--
1.6.1.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] i2c.h: drop i2c_reg_{read, write} hack for Blackfin parts
2009-02-12 1:36 [U-Boot] [PATCH] i2c.h: drop i2c_reg_{read, write} hack for Blackfin parts Mike Frysinger
@ 2009-02-12 7:51 ` Heiko Schocher
0 siblings, 0 replies; 2+ messages in thread
From: Heiko Schocher @ 2009-02-12 7:51 UTC (permalink / raw)
To: u-boot
Hello Mike,
Mike Frysinger wrote:
> The Blackfin i2c driver has been rewritten thus the special ifdefs in the
> common code are no longer needed.
>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
> include/i2c.h | 14 --------------
> 1 files changed, 0 insertions(+), 14 deletions(-)
>
Applied to u-boot-i2c.git, thanks.
bye
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-02-12 7:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-12 1:36 [U-Boot] [PATCH] i2c.h: drop i2c_reg_{read, write} hack for Blackfin parts Mike Frysinger
2009-02-12 7:51 ` Heiko Schocher
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.