[PATCH[[2.5][9-11] correct the i2c address of the saa7111

From: Michael Hunold (hunold@convergence.de)
Date: Tue May 06 2003 - 11:21:36 EST


Hello,

this patch corrects the i2c address from "34>>1" to 0x24 and 0x25.
Believe me -- or look at the data sheet, for example from
http://www.gdv.uni-hannover.de/~hunold1/linux/saa7146/specs/saa7111a.pdf

Page 41 says: "Slave address read = 49H or 4BH; note 2 write = 48H or 4AH"

They use 8-bit addresses here, but i2c addresses are 7-bit, ie. 0x48>>1
== 0x24 and 0x4a>>1 = 0x25

Please apply.

Thanks
Michael Hunold.

diff -uNrwB -x '*.o' --new-file linux-2.5.69/drivers/media/video/saa7111.c linux-2.5.69.patch/drivers/media/video/saa7111.c
--- linux-2.5.69/drivers/media/video/saa7111.c 2003-05-06 13:16:21.000000000 +0200
+++ linux-2.5.69.patch/drivers/media/video/saa7111.c 2003-05-06 17:18:27.000000000 +0200
@@ -57,7 +57,7 @@
         int sat;
 };
 
-static unsigned short normal_i2c[] = { 34>>1, I2C_CLIENT_END };
+static unsigned short normal_i2c[] = { 0x24, 0x25, I2C_CLIENT_END };
 static unsigned short normal_i2c_range[] = { I2C_CLIENT_END };
 
 I2C_CLIENT_INSMOD;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed May 07 2003 - 22:00:27 EST