Usbvision/i2c-algo-usb port to 2.8.0
Jose Bernardo Silva
jbs at bandos.homelinux.com
Mon Aug 4 12:02:36 CEST 2003
I finally managed to test the patch, the following (or something like it)
should be added:
--------------------------------------------------------------
--- /usr/src/usbvision-0.3.3-test5/src/i2c-algo-usb.c 2003-06-05
10:34:26.000000000 +0100
+++ /usr/src/linux/drivers/usb/i2c-algo-usb.c 2003-08-03 22:23:20.000000000
+0100
@@ -182,14 +182,11 @@
/* -----exported algorithm data: ------------------------------------- */
static struct i2c_algorithm i2c_usb_algo = {
- "USB algorithm",
- I2C_ALGO_BIT, /* FIXME */
- usb_xfer,
- NULL,
- NULL, /* slave_xmit */
- NULL, /* slave_recv */
- algo_control, /* ioctl */
- usb_func, /* functionality */
+ .owner = THIS_MODULE,
+ .name = "USB algorithm",
+ .id = I2C_ALGO_BIT,
+ .master_xfer = usb_xfer,
+ .functionality = usb_func,
};
/*
--------------------------------------------------------------
Apart from that, it worked fine. Thanks!
---
Jose Bernardo B R Silva | Source Mage GNU/Linux Section Guru
jbernardo at sourcemage.org | http://www.sourcemage.org
http://counter.li.org #245602
http://cosmos.oninetspeed.pt/jose.bernardo
jbs at bandos.homelinux.com
---------- Original Message -----------
From: Jean Delvare <khali at linux-fr.org>
To: "Jose Bernardo Silva" <jbs at bandos.homelinux.com>
Cc: sensors at Stimpy.netroedge.com
Sent: Thu, 31 Jul 2003 11:50:58 +0200
Subject: Re: Usbvision/i2c-algo-usb port to 2.8.0
> > Thanks! Will do, as soon as I can. I will also email the patch to the
> > author(s) of the usbvision drivers, after I test it, ok?
>
> Mhh, not necessarily. The patch is intended for users, not authors.
> If the author was to apply this patch to his code right now, users
> that are not using i2c-2.8.0 couldn't use usbvision anymore.
>
> Once the new I2C has made it into the official kernel (should be
> 2.4.23) we'll submit real patches to the authors that work for both
> pre-2.4.23 and 2.4.23 kernels.
>
> --
> Jean Delvare
> http://www.ensicaen.ismra.fr/~delvare/
------- End of Original Message -------
More information about the lm-sensors
mailing list