]> 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)
commitefe9f439eb59a3d61cc84e12dcb7503cc03dc61d
tree18b2bf16a18b6e4f65f11d42fc0aaa2ec798683e
parent025fc6fd6a4c4de78f1ac2a4a5a7e24a93119ebc
tools: ffs-test: convert to new descriptor format fixing compilation error

Commit [15200169: “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