]> git.baikalelectronics.ru Git - kernel.git/commit
tools: ffs-test: convert to new descriptor format fixing compilation error
authorMichal Nazarewicz <mina86@mina86.com>
Tue, 20 May 2014 19:38:03 +0000 (09:38 -1000)
committerFelipe Balbi <balbi@ti.com>
Thu, 19 Jun 2014 13:51:35 +0000 (08:51 -0500)
commitdcc7bbfe23a54ce8a32189703a759af0967f1680
tree18b2bf16a18b6e4f65f11d42fc0aaa2ec798683e
parent4f296b01122d584ea7c3f185ceb61c9e8486802a
tools: ffs-test: convert to new descriptor format fixing compilation error

Commit [1ec2b885: “usb: gadget: f_fs: Add flags to descriptors block”]
which introduced a new descriptor format for FunctionFS removed the
usb_functionfs_descs_head structure, which is still used by ffs-test.
tool.

Convert ffs-test by converting it to use the new header format.  For
testing kernels prior to 3.14 (when the new format was introduced) and
parsing of the legacy headers in the new kernels, provide a compilation
flag to make the tool use the old format.

Finally, include information as to when the legacy FunctionFS headers
format has been deprecated (which is also when the new one has been
introduced).

Reported-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
include/uapi/linux/usb/functionfs.h
tools/usb/Makefile
tools/usb/ffs-test.c