Skip to contentSkip to conversation

Port of lk2-4 branch to HEAD in CVS

PATCH Philip Pokorny 3 participants 5 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

The following patch should migrate the changes from the current lk2-4 branch over to the HEAD.

If you checkout the head, then apply this patch and then checkin the results, it should effect a merge of the lk2-4 branch to the main line.

You may have to apply the patch using -p2 or -p3 since there are several parent directories in the diff command lines.

:v)
-------------- next part --------------

i2c/CHANGES +35 -4
diff -ru -N -x CVS lm_sensors-cvs/i2c/CHANGES lm_sensors-lk2-4/i2c/CHANGES
@@ -18,14 +18,45 @@
 -----------------------------------------------------------------------------
 
 2.8.0 (2003????)
+  Interface changes:
+	- File i2c-dev.h: remove all userspace code, moved to
+                          i2c-dev.h in lm_sensors2 package
+	- Struct i2c_adapter: remove inc_use() and dec_use(), add owner,
+                              remove client_count, replace semaphore lock
+                              with semaphores bus and list.
+	- Struct i2c_algorithm: add owner
+	- Struct i2c_driver: remove inc_use() and dec_use()
+	- Struct i2c_msg: type changes; add err and done
+	- Struct i2c_smbus_ioctl_data, i2c_rdwr_ioctl_data: type changes
+	- Remove controlling_mod argument in i2c_register_entry()
+	- Remove i2c_inc_use_client() and i2c_dec_use_client()
+	- Add i2c_client_command()
+  Makefiles: Handle multiple UTS_RELEASE definitions in linux/version.h;
+             Remove old gzipped modules; remove old misc directory if empty;
+             Don't use /usr/include headers for modules;
+             Remove pre-2.4 installation method;
+             Run depmod after module installation
+  Modules (all): Cleanups including
+	- C99 initializers
+	- Remove #ifdef MODULE
+	- Remove #ifndef THIS_MODULE
+	- Remove #ifndef MODULE_LICENSE
+	- Remove init_MUTEX #define
+	- Remove EXPORT_NO_SYMBOLS
+	- Remove dummy xxx_command() definitions
+	- Use module_init() and module_exit()
   drivers (several): make spinlock_t's static
-  i2c-algo-biths.[ch]: Rewrite of i2c-algo-bit with improved bus timing and
-           error handling. This is not a drop-in replacement for i2c-algo-bit.
-           Interface subject to change.
+  i2c-algo-biths.[ch]: (new) Rewrite of i2c-algo-bit with improved
+                       bus timing and error handling.
+                       This is not a drop-in replacement for i2c-algo-bit.
+                       Interface subject to change.
+  i2c-core.c: Rewrite locking;
+              Remove initialization of other modules in i2c_init_all()
+  i2c-dev.c: Fixes from kernel 2.4.21-rc7
   i2c-id.h: add IDs for i2c-algo-biths, W83627HF, LM85, nForce2, OMAHA, GUIDE,
             MPC107, IXP2000, IXP425, IOP3XX, UDA1342, S3VIA
   i2c-proc.c: Fix ignore and probe tests
-  i2c.h: Add fields for detailed delivery report in i2c_msg.
+  mkpatch: Remove patching of drivers/char/mem.c
 
 2.7.0 (20021208)
   drivers (several): C99 initializers (sync w/ kernel 2.5.49); HZ fixes
i2c/INSTALL +13 -6
diff -ru -N -x CVS lm_sensors-cvs/i2c/INSTALL lm_sensors-lk2-4/i2c/INSTALL
@@ -1,18 +1,22 @@
 These are the installation instructions for the i2c package.
+This package is ONLY for 2.4 kernels 2.4.9 or later !!!
 
-There are three ways in which you can compile and install this package. Each
-has its own strong points. They are:
+There are three ways in which you can compile and install this package.
+Option 1 is much easier and is recommended.
 
  1. Complete separate from kernel compilation
+    (only for 2.4 kernels 2.4.9 or later)
     This will generate a set of modules which can be inserted and removed
-    as needed; nothing will be written into the kernel tree;
+    as needed; nothing will be written into the kernel tree.
 
  2. Semi-integrated into the kernel 
+    (only for 2.4 kernels 2.4.9 or later)
     This will add some files to your kernel tree, but has the advantage
     that module symbols are supported; the end result is functionally very 
     like the previous way;
 
  3. Patching of the kernel
+    (only for 2.4 kernels 2.4.13 or later)
     This will patch your kernel source tree. You must recompile your kernel
     to take advantage of this. But it makes it possible to compile drivers
     into the kernel itself, instead of having to add them as modules.
@@ -21,8 +25,11 @@
 We recommend using either method 1 or 3;
 method 2 is less well maintained.
 
-NOTE: SUPPORT FOR 2.0 AND 2.1 KERNELS HAS BEEN DROPPED!
-NOTE: METHOD 3 ONLY WORKS FOR 2.2 KERNELS AND 2.4 KERNELS (2.4.0 OR LATER)
+NOTE: SUPPORT FOR KERNELS 2.0.0 - 2.4.8 HAS BEEN DROPPED!
+      2.4.9 OR LATER REQUIRED!
+
+FOR 2.5 KERNELS, Do not attempt to compile this package.
+                 Use the drivers already in the 2.5 kernel development tree.
 
 
 Having a proper kernel tree (compilation options 1 and 2)
@@ -167,7 +174,7 @@
 =====================
 
 There is a special script which should be able to generate diffs against
-any 2.2 and 2.4 kernel (2.4.0 and later). Note that 2.3 kernels are no 
+any 2.4 kernel (2.4.13 and later). Note that older kernels are no 
 longer supported.
 Please report any problems to our mailinglist. Note that it may fail, 
 and probably silently, if you have applied other patches to your kernel 
i2c/Makefile +21 -7
diff -ru -N -x CVS lm_sensors-cvs/i2c/Makefile lm_sensors-lk2-4/i2c/Makefile
@@ -59,8 +59,9 @@
 # The magic invocation will return something like this:
 #   /lib/modules/2.2.15-ac9/misc
 #MODDIR := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'`/misc
-MODPREF := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'`
+#MODPREF := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'`
 #MODPREF := /lib/modules/$(KERNELVERSION)
+MODPREF := /lib/modules/$(shell $(CC) -I$(LINUX_HEADERS) -E etc/config.c | grep uts_release |cut -f 2 -d'"')
 
 # This is the directory into which the header files will be installed.
 # If you want to make sure your current kernel tree is not overwritten,
@@ -104,6 +105,7 @@
 
 # Some often-used commands with default options
 MKDIR := mkdir -p
+RMDIR := rmdir
 RM := rm -f
 CC := gcc
 BISON := bison
@@ -116,10 +118,11 @@
 # Determine the default compiler flags
 # MODCFLAGS is to create in-kernel object files (modules)
 
-CFLAGS := -I$(LINUX_HEADERS) -O2 -DLM_SENSORS
+CPPFLAGS := -I$(LINUX_HEADERS)
+CFLAGS := -Wall -O2 -DLM_SENSORS
 
 ifeq ($(WARN),1)
-CFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual \
+CFLAGS += -W -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual \
           -Wcast-align -Wwrite-strings -Wnested-externs -Winline
 endif
 
@@ -138,13 +141,19 @@
 endif
 
 ifeq ($(SMP),1)
-MODCFLAGS += -D__SMP__
+MODCPPFLAGS += -D__SMP__
 endif
 
 ifeq ($(MODVER),1)
-MODCFLAGS += -DMODVERSIONS -include $(LINUX_HEADERS)/linux/modversions.h
+MODCPPFLAGS += -DMODVERSIONS -include $(LINUX_HEADERS)/linux/modversions.h
 endif
 
+# This magic is from the kernel Makefile.
+# Extra cflags for kbuild 2.4.  The default is to forbid includes by kernel code
+# from user space headers.
+kbuild_2_4_nostdinc := -nostdinc $(shell LC_ALL=C $(CC) -print-search-dirs | sed -ne 's/install: \(.*\)/-I \1include/gp')
+MODCPPFLAGS += $(CPPFLAGS) $(kbuild_2_4_nostdinc)
+
 .PHONY: dep
 # Make all the default rule
 all::
@@ -166,6 +175,11 @@
 all ::
 
 install :: all
+ifeq ($(DESTDIR),)
+	-/sbin/depmod -a
+else
+	-/sbin/depmod -a -b $(DESTDIR)
+endif
 
 clean::
 	$(RM) lm_sensors-*
@@ -179,9 +193,9 @@
 
 # .o files are used for modules
 %.o: %.c
-	$(CC) $(MODCFLAGS) -c $< -o $@
+	$(CC) $(MODCPPFLAGS) $(MODCFLAGS) -c $< -o $@
 
 %.d: %.c
-	$(CC) -M -MG $(MODCFLAGS) $< | \
+	$(CC) -M -MG $(MODCPPFLAGS) $(MODCFLAGS) $< | \
 	sed -e 's@^\(.*\)\.o:@$*.d $*.o: Makefile '`dirname $*.d`/Module.mk' @' > $@
 
i2c/QUICKSTART +22 -5
diff -ru -N -x CVS lm_sensors-cvs/i2c/QUICKSTART lm_sensors-lk2-4/i2c/QUICKSTART
@@ -2,13 +2,30 @@
 The instructions in this document will only work if you have a standard
 system, and may cause problems.
 
-Quickstart:
+Quickstart for compiling outside the kernel.
+This is by far the EASIEST METHOD.
+Other methods are described in INSTALL.
+------------------------------------------
+
+  * Verify you are running a 2.4 kernel, 2.4.9 or later.
+
   * Make sure you have the kernel tree corresponding to your current
-    kernel in /usr/src/linux. Distribution kernels usually won't do,
-    compile your own from a 'vanilla' tree (get one from
-    ftp://ftp.kernel/org/pub/linux/kernel/).
+    kernel in /lib/modules/(uname -r)/build.
+    Even if the source is there, it may not correspond to your running
+    kernel. If so, you will have to recompile your kernel.
+
+  * Do `lsmod'. If there are any old i2c or sensors modules loaded,
+    you MUST remove them (as root) with `rmmod'.
+
+  * Verify that your i2c support in the kernel is configured as
+    modules or is disabled. If it is compiled-in, you obviously
+    cannot replace it with modules in the next step.
+
   * Do a `make' followed by a `make install'. The warnings about .d
     files at the start are harmless.
+
   * Make sure you do a `depmod -a'.
+
   * That's all (but you need client drivers from some other source to do 
-    anything interesting)
+    anything interesting - see the lm_sensors page:
+    http://secure.netroedge.com/~lm78/
i2c/README +11 -4
diff -ru -N -x CVS lm_sensors-cvs/i2c/README lm_sensors-lk2-4/i2c/README
@@ -1,8 +1,15 @@
-These are the updated i2c drivers, also known as the `Simon Vogl' drivers.
+These package includes the basic i2c drivers.
+This package is ONLY for 2.4 kernels 2.4.9 or later !!!
 
-Updated means: more updated than the ones found in the current kernels.
+ADDITIONALLY, i2c-2.8.0 is not API compatible to earlier i2c
+releases due to struct changes; therefore you must NOT ENABLE
+any other i2c drivers (e.g. bttv) in the 2.4 kernel.
+Do NOT use lm-sensors 2.8.0 or i2c-2.8.0 if you require bttv.
 
-If you have used this package before, please read IMPORTANT_CHANGES!
+FOR 2.5 KERNELS, Do not attempt to compile this package.
+                 Use the drivers already in the 2.5 kernel development tree.
+
+====================================== 
 There are basically two kinds of i2c drivers: drivers for busses and drivers
 for chips. Both are cut in two, to isolate common parts: bus drivers are
@@ -20,4 +27,4 @@
 See doc/summary for a description of the drivers in this package.
 
 You can reach the developers of this package at their mailing list, at
[email protected].
[email protected].
i2c/TODO +6 -5
diff -ru -N -x CVS lm_sensors-cvs/i2c/TODO lm_sensors-lk2-4/i2c/TODO
@@ -2,17 +2,18 @@
 Contact us if you have comments or wish to help.
 ------------------------------------------------
 
-* Send 2.6.3 patch to Marcelo (2.6.1 in kernel 2.4.13)
+* Send 2.8.0 patch to Marcelo (2.6.1 in kernel 2.4.13)
 
-* Send 2.6.4 patch to Linus (2.6.3 in kernel 2.5.24)
-
-* SMBus 2.0
+* SMBus 2.0 Completion
   SMBus 2.0 adds PEC, ARP, and a block process call message.
-  All is complete in release 2.6.4 except:
+  All is complete in release 2.6.4 except for:
 	- SW PEC for Word Data and Process Call. No place to put PEC
 	  in the current i2c_smbus_data structure.
+  For a summary of SMBus protocol support, see
+	http://www2.lm-sensors.nu/~lm78/protocol.html
 
 * Timing considerations in SMBus emulation with i2c-algo-bit (D.E.):
+  (Note that some of these changes are implemented in i2c-algo-biths)
   The Smbus defines a minimum frequency of 10 KHZ for driving the bus, while
   the I2C does not define any minimum frequency.
   furthermore the maximum time a master is allowed to keep the CLK line high
i2c/etc/config.c +8 -0
diff -ru -N -x CVS lm_sensors-cvs/i2c/etc/config.c lm_sensors-lk2-4/i2c/etc/config.c
@@ -0,0 +1,8 @@
+/*
+ * This is used by the top-level makefile to automagically
+ * get the kernel version from <linux/version.h>.
+ * A simple grep doesn't work for Mandrake and Red Hat distributions
+ * that contain multiple UTS_RELEASE definitions in version.h.
+ */
+#include <linux/version.h>
+char *uts_release=UTS_RELEASE;
i2c/kernel/Module.mk +6 -14
diff -ru -N -x CVS lm_sensors-cvs/i2c/kernel/Module.mk lm_sensors-lk2-4/i2c/kernel/Module.mk
@@ -70,9 +70,6 @@
 ifneq ($(shell if grep -q '^CONFIG_I2C_PPORT=y' $(LINUX)/.config; then echo 1; fi),1)
 KERNELTARGETS += $(MODULE_DIR)/i2c-pport.o
 endif
-ifeq ($(shell if grep -q '^CONFIG_I2C_IOP3XX=y' $(LINUX)/.config; then echo 1; fi),1)
-KERNELTARGETS += $(MODULE_DIR)/i2c-iop3xx.o
-endif
 #
 # No CONFIG option for this yet (not in mkpatch)
 #
@@ -94,7 +91,6 @@
 
 all-kernel: $(KERNELTARGETS)
 all :: all-kernel
-	echo KERNELTARGETS $(KERNELTARGETS)
 
 #
 # If $MODPREF/kernel exists, we presume the new (2.4.0) /lib/modules/x.y.z directory
@@ -103,16 +99,12 @@
 #
 install-kernel: all-kernel
 	if [ -n "$(KERNELTARGETS)" ] ; then \
-	  if [ -d "$(DESTDIR)$(MODPREF)/kernel" ] ; then \
-	    $(MKDIR) $(DESTDIR)$(MODPREF)/kernel/drivers/i2c ; \
-	    $(INSTALL) -o root -g root -m 644 $(KERNELTARGETS) $(DESTDIR)$(MODPREF)/kernel/drivers/i2c ; \
-	    for i in $(KERNELTARGETS) ; do \
-	      $(RM) $(DESTDIR)$(MODPREF)/misc/`basename $$i` ; \
-	    done \
-	  else \
-	    $(MKDIR) $(DESTDIR)$(MODPREF)/misc ; \
-	    $(INSTALL) -o root -g root -m 644 $(KERNELTARGETS) $(DESTDIR)$(MODPREF)/misc ; \
-	  fi \
+	  $(MKDIR) $(DESTDIR)$(MODPREF)/kernel/drivers/i2c ; \
+	  $(INSTALL) -o root -g root -m 644 $(KERNELTARGETS) $(DESTDIR)$(MODPREF)/kernel/drivers/i2c ; \
+	  for i in $(KERNELTARGETS) ; do \
+	    $(RM) $(DESTDIR)$(MODPREF)/misc/`basename $$i` $(DESTDIR)$(MODPREF)/kernel/drivers/i2c/`basename $$i`.gz ; \
+	  done ; \
+	  $(RMDIR) $(DESTDIR)$(MODPREF)/misc 2> /dev/null || true ; \
 	fi
 	if [ -n "$(KERNELINCLUDES)" ] ; then \
 	  $(MKDIR) $(DESTDIR)$(LINUX_INCLUDE_DIR) ; \
i2c/kernel/i2c-algo-bit.c +6 -2
diff -ru -N -x CVS lm_sensors-cvs/i2c/kernel/i2c-algo-bit.c lm_sensors-lk2-4/i2c/kernel/i2c-algo-bit.c
@@ -98,7 +98,12 @@
 		if (time_after_eq(jiffies, start+adap->timeout)) {
 			return -ETIMEDOUT;
 		}
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
+		if (current->need_resched)
+			schedule();
+#else
 		cond_resched();
+#endif
 	}
 	DEBSTAT(printk(KERN_DEBUG "needed %ld jiffies\n", jiffies-start));
 	udelay(adap->udelay);
@@ -503,7 +508,7 @@
 	return num;
 }
 
-static u32 bit_func(struct i2c_adapter *adap)
+static u32 bit_func(struct i2c_adapter *i2c_adap)
 {
 	return I2C_FUNC_SMBUS_EMUL | I2C_FUNC_10BIT_ADDR | 
 	       I2C_FUNC_PROTOCOL_MANGLING;
@@ -525,7 +530,6 @@
  */
 int i2c_bit_add_bus(struct i2c_adapter *adap)
 {
-	int i;
 	struct i2c_algo_bit_data *bit_adap = adap->algo_data;
 
 	if (bit_test) {
i2c/kernel/i2c-algo-biths.c +7 -0
diff -ru -N -x CVS lm_sensors-cvs/i2c/kernel/i2c-algo-biths.c lm_sensors-lk2-4/i2c/kernel/i2c-algo-biths.c
@@ -166,7 +166,14 @@
 				adap->errors |= _HS_TIMEOUT; /* scl undef */
 				return;
 			}
+#ifdef cond_resched
 			cond_resched();
+#else
+			if (current->need_resched) {
+				set_current_state(TASK_UNINTERRUPTIBLE);
+				schedule_timeout(1);
+			}
+#endif
 		}
 		adap->set_timer(adap);
 		/* test for SDA arbitration when SCL is high */
i2c/kernel/i2c-algo-pcf.c +1 -1
diff -ru -N -x CVS lm_sensors-cvs/i2c/kernel/i2c-algo-pcf.c lm_sensors-lk2-4/i2c/kernel/i2c-algo-pcf.c
@@ -442,7 +442,7 @@
  */
 int i2c_pcf_add_bus(struct i2c_adapter *adap)
 {
-	int i, status;
+	int i;
 	struct i2c_algo_pcf_data *pcf_adap = adap->algo_data;
 
 	DEB2(printk(KERN_DEBUG "i2c-algo-pcf.o: hw routines for %s registered.\n",
i2c/kernel/i2c-core.c +31 -21

96 lines not on this page · raw message

i2c/kernel/i2c-dev.c +49 -15

159 lines not on this page · raw message

i2c/kernel/i2c-dev.h +7 -3
diff -ru -N -x CVS lm_sensors-cvs/i2c/kernel/i2c-dev.h lm_sensors-lk2-4/i2c/kernel/i2c-dev.h
@@ -19,28 +19,32 @@
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
 /* $Id: i2c-dev.h,v 1.13 2003/01/21 08:08:16 kmalkki Exp $ */
 
 #ifndef _LINUX_I2C_DEV_H
 #define _LINUX_I2C_DEV_H
 
 #include <linux/types.h>
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,18)
+#define minor(d) MINOR(d)
+#endif
+
 /* Some IOCTL commands are defined in <linux/i2c.h> */
 /* Note: 10-bit addresses are NOT supported! */
 
 /* This is the structure as used in the I2C_SMBUS ioctl call */
 struct i2c_smbus_ioctl_data {
-	char read_write;
+	__u8 read_write;
 	__u8 command;
-	int size;
+	__u32 size;
 	union i2c_smbus_data *data;
 };
 
 /* This is the structure as used in the I2C_RDWR ioctl call */
 struct i2c_rdwr_ioctl_data {
 	struct i2c_msg *msgs;	/* pointers to i2c_msgs */
-	int nmsgs;		/* number of i2c_msgs */
+	__u32 nmsgs;		/* number of i2c_msgs */
 };
 
 #endif /* _LINUX_I2C_DEV_H */
i2c/kernel/i2c-id.h +1 -0
diff -ru -N -x CVS lm_sensors-cvs/i2c/kernel/i2c-id.h lm_sensors-lk2-4/i2c/kernel/i2c-id.h
@@ -152,6 +152,7 @@
 #define I2C_DRIVERID_FS451 1037
 #define I2C_DRIVERID_W83627HF 1038
 #define I2C_DRIVERID_LM85 1039
+#define I2C_DRIVERID_LM83 1040
 
 /*
  * ---- Adapter types ----------------------------------------------------
i2c/kernel/i2c-iop3xx.c +0 -624

624 lines not on this page · raw message

i2c/kernel/i2c-iop3xx.h +0 -120

120 lines not on this page · raw message

i2c/kernel/i2c-proc.c +95 -109

270 lines not on this page · raw message

i2c/kernel/i2c-velleman.c +1 -0
diff -ru -N -x CVS lm_sensors-cvs/i2c/kernel/i2c-velleman.c lm_sensors-lk2-4/i2c/kernel/i2c-velleman.c
@@ -18,12 +18,13 @@
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.		     */
 /* ------------------------------------------------------------------------- */
 
 /* $Id: i2c-velleman.c,v 1.29 2003/01/21 08:08:16 kmalkki Exp $ */
 
 #include <linux/kernel.h>
 #include <linux/ioport.h>
 #include <linux/module.h>
 #include <linux/init.h>
+#include <linux/errno.h>
 #include <linux/delay.h>
 #include "i2c.h"
 #include "i2c-algo-bit.h"
i2c/kernel/i2c.h +12 -6
diff -ru -N -x CVS lm_sensors-cvs/i2c/kernel/i2c.h lm_sensors-lk2-4/i2c/kernel/i2c.h
@@ -23,18 +23,24 @@
 /* With some changes from Kyösti Mälkki <[email protected]> and
    Frodo Looijaard <[email protected]> */
 
 /* $Id: i2c.h,v 1.68 2003/01/21 08:08:16 kmalkki Exp $ */
 
 #ifndef _LINUX_I2C_H
 #define _LINUX_I2C_H
 
-#define I2C_DATE "20021208"
-#define I2C_VERSION "2.7.0"
+#define I2C_DATE "2003xxxx"
+#define I2C_VERSION "2.8.0-CVS"
 
 #include <linux/module.h>
 #include <linux/types.h>
-#include "i2c-id.h"
+#include <linux/errno.h>
 #include <asm/semaphore.h>
+#include "i2c-id.h"
+
+#include <linux/version.h>
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,10)
+#define MODULE_LICENSE(x)
+#endif
 
 /* --- General options ------------------------------------------------	*/
 
@@ -349,15 +355,15 @@
  */
 struct i2c_msg {
 	__u16 addr;	/* slave address			*/
-	unsigned short flags;		
+	__u16 flags;		
 #define I2C_M_TEN	0x10	/* we have a ten bit chip address	*/
 #define I2C_M_RD	0x01
 #define I2C_M_NOSTART	0x4000
 #define I2C_M_REV_DIR_ADDR	0x2000
 #define I2C_M_IGNORE_NAK	0x1000
 #define I2C_M_NO_RD_ACK		0x0800
-	short len;		/* msg length				*/
-	char *buf;		/* pointer to msg data			*/
+	__u16 len;		/* msg length				*/
+	__u8 *buf;		/* pointer to msg data			*/
 	int err;
 	short done;
 };
i2c/mkpatch/Config.in +3 -0
diff -ru -N -x CVS lm_sensors-cvs/i2c/mkpatch/Config.in lm_sensors-lk2-4/i2c/mkpatch/Config.in
@@ -44,6 +44,9 @@
       fi
    fi
 
+# This is needed for automatic patch generation: sensors code starts here
+# This is needed for automatic patch generation: sensors code ends here
+
    dep_tristate 'I2C device interface' CONFIG_I2C_CHARDEV $CONFIG_I2C
    dep_tristate 'I2C /proc interface (required for hardware sensors)' CONFIG_I2C_PROC $CONFIG_I2C $CONFIG_SYSCTL
 
i2c/mkpatch/FILES +6 -8
diff -ru -N -x CVS lm_sensors-cvs/i2c/mkpatch/FILES lm_sensors-lk2-4/i2c/mkpatch/FILES
@@ -1,32 +1,30 @@
-kernel/i2c-core.c		drivers/i2c/i2c-core.c
-kernel/i2c-dev.c		drivers/i2c/i2c-dev.c
-kernel/i2c-proc.c		drivers/i2c/i2c-proc.c
+kernel/i2c-adap-ibm_ocp.c	drivers/i2c/i2c-adap-ibm_ocp.c
 kernel/i2c-algo-8xx.c		drivers/i2c/i2c-algo-8xx.c
 kernel/i2c-algo-bit.c		drivers/i2c/i2c-algo-bit.c
-kernel/i2c-algo-biths.c		drivers/i2c/i2c-algo-biths.c
 kernel/i2c-algo-ibm_ocp.c	drivers/i2c/i2c-algo-ibm_ocp.c
 kernel/i2c-algo-pcf.c		drivers/i2c/i2c-algo-pcf.c
+kernel/i2c-core.c		drivers/i2c/i2c-core.c
+kernel/i2c-dev.c		drivers/i2c/i2c-dev.c
 kernel/i2c-elektor.c		drivers/i2c/i2c-elektor.c
 kernel/i2c-elv.c		drivers/i2c/i2c-elv.c
 kernel/i2c-frodo.c		drivers/i2c/i2c-frodo.c
 kernel/i2c-pcf-epp.c		drivers/i2c/i2c-pcf-epp.c
 kernel/i2c-philips-par.c	drivers/i2c/i2c-philips-par.c
 kernel/i2c-pport.c		drivers/i2c/i2c-pport.c
+kernel/i2c-proc.c		drivers/i2c/i2c-proc.c
 kernel/i2c-rpx.c		drivers/i2c/i2c-rpx.c
 kernel/i2c-velleman.c		drivers/i2c/i2c-velleman.c
 kernel/i2c.h			include/linux/i2c.h
-kernel/i2c-id.h			include/linux/i2c-id.h
 kernel/i2c-dev.h		include/linux/i2c-dev.h
-kernel/i2c-proc.h		include/linux/i2c-proc.h
 kernel/i2c-algo-8xx.h		include/linux/i2c-algo-8xx.h
 kernel/i2c-algo-bit.h		include/linux/i2c-algo-bit.h
-kernel/i2c-algo-biths.h		include/linux/i2c-algo-biths.h
 kernel/i2c-algo-ibm_ocp.h	include/linux/i2c-algo-ibm_ocp.h
 kernel/i2c-algo-pcf.h		include/linux/i2c-algo-pcf.h
+kernel/i2c-id.h			include/linux/i2c-id.h
 kernel/i2c-pcf8584.h		include/linux/i2c-pcf8584.h
+kernel/i2c-proc.h		include/linux/i2c-proc.h
 doc/dev-interface		Documentation/i2c/dev-interface
 doc/functionality		Documentation/i2c/functionality
-doc/i2c-old-porting		Documentation/i2c/i2c-old-porting
 doc/i2c-pport			Documentation/i2c/i2c-pport
 doc/i2c-protocol		Documentation/i2c/i2c-protocol
 doc/i2c-velleman		Documentation/i2c/i2c-velleman
i2c/mkpatch/INCLUDES +2 -3
diff -ru -N -x CVS lm_sensors-cvs/i2c/mkpatch/INCLUDES lm_sensors-lk2-4/i2c/mkpatch/INCLUDES
@@ -1,10 +1,9 @@
 "i2c.h"			<linux/i2c.h>
-"i2c-id.h"		<linux/i2c-id.h>
 "i2c-dev.h"		<linux/i2c-dev.h>
-"i2c-proc.h"		<linux/i2c-proc.h>
 "i2c-algo-bit.h"	<linux/i2c-algo-bit.h>
-"i2c-algo-biths.h"	<linux/i2c-algo-biths.h>
 "i2c-algo-pcf.h"	<linux/i2c-algo-pcf.h>
 "i2c-pcf8584.h"		<linux/i2c-pcf8584.h>
+"i2c-id.h"		<linux/i2c-id.h>
+"i2c-proc.h"		<linux/i2c-proc.h>
 "i2c-algo-8xx.h"	<linux/i2c-algo-8xx.h>
 "i2c-algo-ibm_ocp.h"	<linux/i2c-algo-ibm_ocp.h>
i2c/mkpatch/mkpatch.pl +390 -12

500 lines not on this page · raw message

#1 lore raw

let's do this just after the release.

Quoted 11 lines · Philip Pokorny

The following patch should migrate the changes from the current lk2-4 branch over to the HEAD.

If you checkout the head, then apply this patch and then checkin the results, it should effect a merge of the lk2-4 branch to the main line.

You may have to apply the patch using -p2 or -p3 since there are several parent directories in the diff command lines.

:v)

#2 lore raw
In reply to Philip Pokorny
Quoted 2 lines

I'll regenerate the patch when you've cut the release. It's easy.

It's just checking out HEAD and LK2-4 in different local directories and running diff -ruN on them, that's it?

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#3 lore raw
In reply to Philip Pokorny

No problem.

I'll regenerate the patch when you've cut the release. It's easy.

:v)

Quoted 16 lines · Mark D. Studebaker

let's do this just after the release.

Quoted 11 lines · Philip Pokorny

The following patch should migrate the changes from the current lk2-4 branch over to the HEAD.

If you checkout the head, then apply this patch and then checkin the results, it should effect a merge of the lk2-4 branch to the main line.

You may have to apply the patch using -p2 or -p3 since there are several parent directories in the diff command lines.

:v)

#4 lore raw
In reply to Philip Pokorny

Yes.

Quoted 7 lines · Jean Delvare
Quoted 2 lines

I'll regenerate the patch when you've cut the release. It's easy.

It's just checking out HEAD and LK2-4 in different local directories and running diff -ruN on them, that's it?