summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2006-04-28 19:44:22 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2006-04-28 19:44:22 +0000
commitc2db529134bcd7c4951f19c6370fd3e8b63e896c (patch)
treef54644d3fabc0c8991b408fd3c3bb6117aec54d8
parent7bc4ad6e56d2083a3adb71705dbdd236fc352eb5 (diff)
downloadbuildroot-novena-c2db529134bcd7c4951f19c6370fd3e8b63e896c.tar.gz
buildroot-novena-c2db529134bcd7c4951f19c6370fd3e8b63e896c.zip
0000852: toolchain/kernel-headers (2.6.12): Sync struct i2c_msg with kernel
definition. The struct i2c_msg definition in linux-libc-headers-2.6.12.0 has two extra members not present in the kernel definition causing all kinds of problems. This patch fixes that.
-rw-r--r--toolchain/kernel-headers/linux-libc-headers-2.6.12.0-i2c_msg.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/toolchain/kernel-headers/linux-libc-headers-2.6.12.0-i2c_msg.patch b/toolchain/kernel-headers/linux-libc-headers-2.6.12.0-i2c_msg.patch
new file mode 100644
index 000000000..2c1eac3f8
--- /dev/null
+++ b/toolchain/kernel-headers/linux-libc-headers-2.6.12.0-i2c_msg.patch
@@ -0,0 +1,12 @@
+diff -urpN linux-libc-headers-2.6.12.0/include/linux/i2c-dev.h linux-libc-headers-2.6.12.0-patched/include/linux/i2c-dev.h
+--- linux-libc-headers-2.6.12.0/include/linux/i2c-dev.h 2005-07-06 02:17:21.000000000 +0200
++++ linux-libc-headers-2.6.12.0-patched/include/linux/i2c-dev.h 2006-04-26 13:10:56.000000000 +0200
+@@ -44,8 +44,6 @@ struct i2c_msg {
+ #define I2C_M_NO_RD_ACK 0x0800
+ short len; /* msg length */
+ char *buf; /* pointer to msg data */
+- int err;
+- short done;
+ };
+
+ /* To determine what functionality is present */