Skip to content

Commit 0912214

Browse files
mina86Felipe Balbi
authored and
Felipe Balbi
committed
usb: gadget: f_fs: resurect usb_functionfs_descs_head structure
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. Cc: <[email protected]> # 3.14 Reported-by: Lad, Prabhakar <[email protected]> Reported-by: Krzysztof Opasiak <[email protected]> Signed-off-by: Michal Nazarewicz <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
1 parent 9ad7860 commit 0912214

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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)