Skip to content

Commit 40c409d

Browse files
mina86gregkh
authored andcommitted
usb: gadget: f_fs: resurect usb_functionfs_descs_head structure
commit 0912214 upstream. Even though usb_functionfs_descs_head structure is now deprecated, it has been used by some user space tools. Its removel in commit [ac8dde1: “Add flags to descriptors block”] was an oversight leading to build breakage for such tools. Bring it back so that old user space tools can still be build without problems on newer kernel versions. Reported-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Reported-by: Krzysztof Opasiak <k.opasiak@samsung.com> Signed-off-by: Michal Nazarewicz <mina86@mina86.com> Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 621359d commit 40c409d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎include/uapi/linux/usb/functionfs.h‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ struct usb_endpoint_descriptor_no_audio {
3333
__u8 bInterval;
3434
} __attribute__((packed));
3535

36+
/* Legacy format, deprecated as of 3.14. */
37+
struct usb_functionfs_descs_head {
38+
__le32 magic;
39+
__le32 length;
40+
__le32 fs_count;
41+
__le32 hs_count;
42+
} __attribute__((packed, deprecated));
3643

3744
/*
3845
* Descriptors format:

0 commit comments

Comments
 (0)