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

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