Skip to contentSkip to conversation

PATCH: fix warning in cpu/arm920t/at91rm9200/i2c.c

U-Boot-Users Steven Scholz 2 participants 2 messages Apr 7, 2005 Arm/Microchip (AT91) SoC support

lore
Share & tools
lore
#0 lore raw

Hi,

Please consider this trivial patch to fix a compiler warning that appers when not defining CFG_I2C_EEPROM_ADDR_OVERFLOW:

cpu/arm920t/at91rm9200/i2c.c 7 Apr 2005 08:52:34 -0000 renamed from cpu/arm920t/at91rm9200/i2c.c 6 Apr 2005 13:52:34 -0000 1.1 +0 -0
diff -u -r1.1 i2c.c
@@ -140,10 +140,10 @@
  i2c_write(unsigned char chip, unsigned int addr, int alen,
                                                         unsigned char *buffer, 

int len)
{
+#ifdef CFG_I2C_EEPROM_ADDR_OVERFLOW

         int i;
         unsigned char *buf;

-#ifdef CFG_I2C_EEPROM_ADDR_OVERFLOW

         /* we only allow one address byte */
         if (alen > 1)
                 return 1;
Signature · 1 line
Steven
#1 lore raw
Quoted 2 lines · In message <[email protected]> you wrote:

Please consider this trivial patch to fix a compiler warning that appers when

not defining CFG_I2C_EEPROM_ADDR_OVERFLOW:

Added, thanks.

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Copy from one, it's plagiarism; copy from two, it's research.