lib: configfs: Fix the memory allocation for the array of format descriptors calloc() expects the first parameter to be the number of elements and the second to be the size of each element in bytes. The arguments passed to calloc() are reversed. Fix it by swapping the arguments. Signed-off-by: Mehdi Djait <mehdi.djait@linux.intel.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
uvcgadget is a pure C library that implements handling of UVC gadget functions.
To compile:
$ meson build $ ninja -C build
Cross compilation can be managed by meson. Please read the directions at https://mesonbuild.com/Cross-compilation.html for detailed guidance on using meson.
In brief summary:
$ meson build --cross <meson cross file> $ ninja -C build