[[email protected]: gcc-4.0 compilation issue]
----- Forwarded message from Matteo Croce <[email protected]> -----
From: Matteo Croce <[email protected]>
Subject: gcc-4.0 compilation issue
Cc: Ky?sti M?lkki <[email protected]>, Frodo Looijaard <[email protected]>,
"Simon G.Vogl" <[email protected]>
To: "Undisclosed.Recipients": ;
X-Virus-Scanned: ClamAV 0.83/782/Thu Mar 24 13:29:35 2005 on morannon.frodo.local
X-Virus-Scanned: amavisd-new isd-holland.nl
X-Virus-Status: Clean
X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on
morannon.frodo.local
X-Spam-Status: No, score=-2.6 required=5.0 testsºYES_00 autolearn=ham
version=3.0.2
X-Spam-Level:
Hi,
i've made this trivial patch to make the linux kernel i2c driver compile with gcc-4.0
Regards,
Matteo Croce
include/linux/i2c.h +2 -2
@@ -55,7 +55,7 @@/* Transfer num messages. */ -extern int i2c_transfer (struct i2c_adapter *adap,struct i2c_msg *msg,int num); +extern int i2c_transfer (struct i2c_adapter *adap,struct i2c_msg msg[],int num);/* * Some adapter types (i.e. PCF 8584 based ones) may support slave behaviuor.
@@ -194,7 +194,7 @@to NULL. If an adapter algorithm can do SMBus access, set smbus_xfer. If set to NULL, the SMBus protocol is simulated using common I2C messages */ -int (*master_xfer)(struct i2c_adapter *adap,struct i2c_msg *msgs, +int (*master_xfer)(struct i2c_adapter *adap,struct i2c_msg msgs[],int num); int (*smbus_xfer) (struct i2c_adapter *adap, u16 addr, unsigned short flags, char read_write,
----- End forwarded message -----
Signature · 4 lines
Frodo Looijaard <[email protected]> PGP key and more: http://huizen.dds.nl/~frodol Defenestration n. (formal or joc.): The act of removing Windows from your computer in disgust, usually followed by the installation of Linux or some other Unix-like operating system.