OK.
> > > Comments?
> >
> > Could you make a helper for open like for ioctl ?
>
> video_open does call video_device[minor]->fops->open(), isn't that
> enought?
I'd prefer seeing exclusive opening handeled in the helper initially.
> > And please don't use a pointer to the device descriptor
> > in the file structure. It makes live for USB devices much harder.
>
> Sorry, I don't understand. What exactly do you mean?
> file->private_data? videodev.c doesn't touch it ...
But the skeleton driver you provide does so.
Regards
Oliver
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/