i2c 2.5.5
PATCH 1/1 i2c 2.5.5
Hi, everyone...
Kernel 2.4 looks like including the updated i2c package. But the diff automatic generator from i25 2.5.5 still gives this diffs against 2.4.1-ac13. Think about them for inclussion...(I do not know if some of them are not valid, like the change of <slab.h> for <malloc.h>, but the #ifdefs CONFIG_XXXX perhaps matter)
============ patch follows ===============
--- linux-old/Documentation/i2c/dev-interface Thu Feb 15 00:26:02 CET
2001
+++ linux/Documentation/i2c/dev-interface Thu Feb 15 00:26:02 CET 2001
@@ -71,4 +71,7 @@
}
+IMPORTANT: because of the use of inline functions, you *have* to use +'-O' or some variation when you compile your program!
+
Full interface description
--- linux-old/Documentation/i2c/smbus-protocol Thu Feb 15 00:26:03 CET
2001
+++ linux/Documentation/i2c/smbus-protocol Thu Feb 15 00:26:03 CET 2001
@@ -32,5 +32,5 @@
=================
-This sends a single byte to the device, at the place of the Rd/Wr bit. +This sends a single bit to the device, at the place of the Rd/Wr bit.
There is no equivalent Read Quick command.
drivers/i2c/i2c-algo-bit.c +2 -2
@@ -22,10 +22,10 @@Frodo Looijaard <[email protected]> */ -/* $Id: i2c-algo-bit.c,v 1.27 2000/07/09 15:16:16 frodo Exp $ */ +/* $Id: i2c-algo-bit.c,v 1.28 2001/01/09 20:10:57 frodo Exp $ */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/delay.h> -#include <linux/slab.h> +#include <linux/malloc.h> #include <linux/version.h> #include <linux/init.h>
drivers/i2c/i2c-algo-pcf.c +1 -1
@@ -30,5 +30,5 @@#include <linux/module.h> #include <linux/delay.h> -#include <linux/slab.h> +#include <linux/malloc.h> #include <linux/version.h> #include <linux/init.h>
drivers/i2c/i2c-core.c +18 -1
@@ -26,5 +26,5 @@#include <linux/kernel.h> #include <linux/errno.h> -#include <linux/slab.h> +#include <linux/malloc.h> #include <linux/proc_fs.h> #include <linux/config.h>
@@ -1278,12 +1278,29 @@#ifndef MODULE +#ifdef CONFIG_I2C_CHARDEV extern int i2c_dev_init (void ); +#endif +#ifdef CONFIG_I2C_ALGOBIT extern int i2c_algo_bit_init (void ); +#endif +#ifdef CONFIG_I2C_BITLP extern int i2c_bitlp_init (void ); +#endif +#ifdef CONFIG_I2C_BITELV extern int i2c_bitelv_init (void ); +#endif +#ifdef CONFIG_I2C_BITVELLE extern int i2c_bitvelle_init (void ); +#endif +#ifdef CONFIG_I2C_BITVIA extern int i2c_bitvia_init (void ); +#endif + +#ifdef CONFIG_I2C_ALGOPCF extern int i2c_algo_pcf_init (void ); +#endif +#ifdef CONFIG_I2C_PCFISA extern int i2c_pcfisa_init (void ); +#endif /* This is needed for automatic patch generation: sensors code starts here */
drivers/i2c/i2c-dev.c +2 -2
@@ -29,5 +29,5 @@<[email protected]> */ -/* $Id: i2c-dev.c,v 1.36 2000/09/22 02:19:35 mds Exp $ */ +/* $Id: i2c-dev.c,v 1.37 2001/01/09 20:10:57 frodo Exp $ */ #include <linux/config.h>
@@ -35,5 +35,5 @@#include <linux/module.h> #include <linux/fs.h> -#include <linux/slab.h> +#include <linux/malloc.h> #include <linux/version.h> #if LINUX_KERNEL_VERSION >=KERNEL_VERSION (2 ,4 ,0 )
drivers/i2c/i2c-elektor.c +1 -1
@@ -29,5 +29,5 @@#include <linux/module.h> #include <linux/delay.h> -#include <linux/slab.h> +#include <linux/malloc.h> #include <linux/version.h> #include <linux/init.h>
drivers/i2c/i2c-elv.c +1 -1
@@ -27,5 +27,5 @@#include <linux/module.h> #include <linux/delay.h> -#include <linux/slab.h> +#include <linux/malloc.h> #include <linux/version.h> #include <linux/init.h>
include/linux/i2c-id.h +1 -1
@@ -21,5 +21,5 @@/* ------------------------------------------------------------------------- */ -/* $Id: i2c-id.h,v 1.25 2000/10/12 07:27:29 simon Exp $ */ +/* $Id: i2c-id.h,v 1.27 2000/12/23 16:59:38 mds Exp $ */ #ifndef I2C_ID_H
Signature · 4 lines
J.A. Magallon $> cd pub mailto:[email protected] $> more beer Linux werewolf 2.4.1-ac10 #1 SMP Sun Feb 11 23:36:46 CET 2001 i686
Review line 75
Quoted 6 lines
(quoted diff) +3
-0@@ -71,4 +71,7 @@ } +IMPORTANT: because of the use of inline functions, you *have* to use +'-O' or some variation when you compile your program! +
Considered too obvious to restate
Review line 77
Quoted 4 lines
(quoted diff) +1
-1-This sends a single byte to the device, at the place of the Rd/Wr bit. +This sends a single bit to the device, at the place of the Rd/Wr bit. There is no equivalent Read Quick command.
Ok valid
The rest are revision noise and incorrect reverts of include changes
drivers/i2c/i2c-core.c line 1281
Quoted 3 lines
#ifndef MODULE
drivers/i2c/i2c-core.c +1
-0+#ifdef CONFIG_I2C_CHARDEV extern int i2c_dev_init (void );
Also reverting a cleanup
Quoted 9 lines · On 02.15 Alan Cox wrote:
The rest are revision noise and incorrect reverts of include changes
drivers/i2c/i2c-core.c line 1281
Quoted 3 lines
#ifndef MODULE
drivers/i2c/i2c-core.c +1
-0+#ifdef CONFIG_I2C_CHARDEV extern int i2c_dev_init (void );Also reverting a cleanup
And I manually deleted the
#endif /* X */ (kernel)
vs
#endif X (i2c 2.5.5)
diffs that I got...
(do not know why the maintainer did not clone the change...)
So I suppose the lm_sensors-2.5.5 package will have the same problems. Well, I will leave it for home use...
Signature · 4 lines
J.A. Magallon $> cd pub mailto:[email protected] $> more beer Linux werewolf 2.4.1-ac10 #1 SMP Sun Feb 11 23:36:46 CET 2001 i686