The not-so recent 2.6.6-bk has changed 'include/linux/i2c.h':

-#define I2C_ADAP_CLASS_CAM_DIGITAL     (1<<5)  /* most webcams */
+#define I2C_CLASS_CAM_DIGITAL          (1<<5)  /* most webcams */

So that when I build the ov511-2.27 drivers the define cannot be found:

[EMAIL PROTECTED] ov511-2.27]# make
    Building OVCam drivers for 2.6 kernel.
    PLEASE IGNORE THE "Overriding SUBDIRS" WARNING
make -C /lib/modules/2.6.6-bk8/build SUBDIRS=/usr/src/stuff/ov511-2.27
modules
make[1]: Entering directory `/usr/src/linux-2.6.6bk8'
  CC [M]  /usr/src/stuff/ov511-2.27/ov511_core.o
/usr/src/stuff/ov511-2.27/ov511_core.c:1674: error:
`I2C_ADAP_CLASS_CAM_DIGITAL' undeclared here (not in a function)
/usr/src/stuff/ov511-2.27/ov511_core.c:1674: error: initializer element
is not constant
/usr/src/stuff/ov511-2.27/ov511_core.c:1674: error: (near initialization
for `i2c_adap_template.class')
make[2]: *** [/usr/src/stuff/ov511-2.27/ov511_core.o] Error 1
make[1]: *** [_module_/usr/src/stuff/ov511-2.27] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.6bk8'
make: *** [default] Error 2

This is a quick fix, simply changing I2C_ADAP_CLASS_CAM_DIGITAL to
I2C_CLASS_CAM_DIGITAL in ovfx2.c and ov511_core.c will let the drivers
compile.

Is there any chance of ovcamchip and the newer ov511 being merged with
the mainline kernel? It would stop this sort of breakage in the future.
Your ovcamchip patch applied cleanly, did greg not accept it? If you
need any help just ask.

 Richard Hughes




-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to