I am looking for some insight about some choice in the code.

In the file /sys/dev/usb/uvideo.h, the structure usb_video_header_desc
store a part of an USB descriptor. The entire descriptor is stored in
usb_video_header_desc_all which consist of fix, a pointer to the
former struct and baInterfaceNR, a pointer to uByte.

I'm willing to replace that construction by merging the two struct.
The field fix would disappear and baInterfaceNR would be array of size
1 at the end of the struct.

But I don't know why this code is done this way. As it haven't been
touched since version 1.4 in 2008, I assume it's an old way of doing
things or a short term solution. If that the case, I'll go ahead and
change it.
Other possibility I think of is compiler on some architecture who
don't like struct ending with array of arbitrary size or that the
preferred way of doing things.


-- 

Cordialement, Coues Ludovic
+336 148 743 42

Reply via email to