Hi, > It seems to compile ok ! > just a warning on usb_to_input_id : > In function 'uvc_input_init': > uvc_status.c:47: warning: implicit declaration of > function 'usb_to_input_id' > Warning: "usb_to_input_id" > [/mnt/sda2/temp/uvc1/trunk/uvcvideo.ko] undefined! > > The uvcvideo.ko is made. I still have no image, but it > must be my fault now. I continue.
Here's an updated patch. Could you please try it ? Best regards, Laurent Pinchart
Index: uvc_status.c =================================================================== --- uvc_status.c (revision 199) +++ uvc_status.c (working copy) @@ -14,7 +14,11 @@ #include <linux/kernel.h> #include <linux/input.h> #include <linux/usb.h> +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18) +#include <linux/usb_input.h> +#else #include <linux/usb/input.h> +#endif #include "uvcvideo.h" @@ -43,7 +47,11 @@ input->name = dev->name; input->phys = phys; usb_to_input_id(udev, &input->id); +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22) input->dev.parent = &dev->intf->dev; +#else + input->cdev.dev = &dev->intf->dev; +#endif set_bit(EV_KEY, input->evbit); set_bit(BTN_0, input->keybit);
_______________________________________________ Linux-uvc-devel mailing list [email protected] https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
