Hey Alexander,

On Sat, 2003-06-28 at 09:51, Alexander Bedard wrote:
> No, it's the latest release from the i2c/LM-sensors project homepage.
> Latest version is 2.8.0, patched against kernel 2.4.21. Driver-Zoran
> would compile with i2c 2.7.0 on kernel 2.4.21, but for some reason it
> doesn't like i2c 2.8.0.

Well, yes, but I think it's the same version that is currently in 2.5.x.
I don't know of a quick way to detect it from the top of my head.
i2c-2.8.0 changes the API/ABI of the i2c modules, and so our driver no
longer compiles.

For now, I'd recommend to simply use i2c-2.7.0. I can try some #ifdef
voodoo when I find time, that will make i2c-2.8.0 work too, I suppose,
but I can't give a solution right from here. ;). You could also try it
manually: in each of the files that gives this compile error, at the
bottom, you'll find lines like this:
--
static struct i2c_driver i2c_driver_saa7111 = {
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
        .owner = THIS_MODULE,
#endif
        .name = "saa7111",
                                                                                
        .id = I2C_DRIVERID_SAA7111A,
        .flags = I2C_DF_NOTIFY,
                                                                                
        .attach_adapter = saa7111_attach_adapter,
        .detach_client = saa7111_detach_client,
        .command = saa7111_command,
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
        .inc_use = saa7111_inc_use,
        .dec_use = saa7111_dec_use,
#endif
};
--
"saa7111" is the name of the driver, which is different for each file.
Simply change the "#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)" here
into "#if I2C_VERSION == "2.8.0"" or something similar, and see if it
compiles now. If it doesn't, just wait for a while until I've fixed it.
;).

Ronald

-- 
Ronald Bultje <[EMAIL PROTECTED]>



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to