Re: About "unknown field specified in initializer" error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 23, 2009 at 11:55:12AM +0300, Behzat wrote:
> 
> Hello everyone,
> 
> I've some trouble with usb webcam driver. I think it's really strange. 
> 
> 
> static struct video_device usbcam_videodev_template = {
>         .name                   = "usbcam-unknown",
>         .type                   =  VFL_TYPE_GRABBER,
>         .type2                  =  VID_TYPE_CAPTURE,
>         .minor                  = -1,
>         .release                = usbcam_videodev_release,
> };
> 
> ::: error :::
> /home/home/Desktop/sq930-dev/usbcam_dev.c:133: error: unknown field ‘type’ 
> specified in initializer
> /home/home/Desktop/sq930-dev/usbcam_dev.c:134: error: unknown field ‘type2’ 
> specified in initializer

That means those fields are no longer in the struct video_device
structure.

> By the way this driver is sq930(i used for creative laptop webcam) and it was 
> written for 2.6.17 -2.6.23. 

It needs to be updated to the newer kernel api changes.

I suggest asking about this on the v4l mailing list, the developers
there can help you out.

good luck,

greg k-h

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux