On Sat, Mar 17, 2007 at 08:52:44AM +0100, Jean Delvare wrote:
> Why are you making a separate algorithm driver? This should really only
> be done when the algorithm is very generic. This is the exception, not
> the rule. These days I tend to move algorithm code back into the only
> bus driver that uses them (i2c-algo-sibyte done recently, i2c-algo-sgi
> is next on my list.)
Please remove i2c-algo-sgi from your list. This algorithm is used by
the VINO asic (drivers/media/video/vino.c) present in SGI Indy machines as
well as by the MACE asic (no driver exist yet) present in SGI O2 machines.
You may consider applying this patch (also removes trailing whitespace).
Signed-off-by: Ladislav Michl <email@example.com>
--- linux-omap-2.6.git/drivers/i2c/algos/i2c-algo-sgi.c.orig 2007-03-19
+++ linux-omap-2.6.git/drivers/i2c/algos/i2c-algo-sgi.c 2007-03-19
@@ -1,6 +1,7 @@
- * i2c-algo-sgi.c: i2c driver algorithms for SGI adapters.
+ * i2c-algo-sgi.c: i2c driver algorithm used by the VINO (SGI Indy) and
+ * MACE (SGI O2) chips.
* This file is subject to the terms and conditions of the GNU General Public
* License version 2 as published by the Free Software Foundation.
@@ -162,8 +163,8 @@
.functionality = sgi_func,
- * registering functions to load algorithms at runtime
+ * registering functions to load algorithms at runtime
int i2c_sgi_add_bus(struct i2c_adapter *adap)