usb: Convert protocol header structures to use explicitly sized variables

This patch converts USB protocol headers to use explicitly sized
fields like the rest of the code

Signed-off-by: Radha Mohan Chintakuntla <rchintakuntla@cavium.com>
Signed-off-by: Sergey Temerkhanov <s.temerkhanov@gmail.com>
This commit is contained in:
Sergey Temerkhanov 2015-04-01 17:18:44 +03:00 committed by Marek Vasut
parent ec5e78cf8a
commit b12242aceb

View file

@ -45,20 +45,20 @@
/* device request (setup) */ /* device request (setup) */
struct devrequest { struct devrequest {
unsigned char requesttype; __u8 requesttype;
unsigned char request; __u8 request;
unsigned short value; __le16 value;
unsigned short index; __le16 index;
unsigned short length; __le16 length;
} __attribute__ ((packed)); } __attribute__ ((packed));
/* Interface */ /* Interface */
struct usb_interface { struct usb_interface {
struct usb_interface_descriptor desc; struct usb_interface_descriptor desc;
unsigned char no_of_ep; __u8 no_of_ep;
unsigned char num_altsetting; __u8 num_altsetting;
unsigned char act_altsetting; __u8 act_altsetting;
struct usb_endpoint_descriptor ep_desc[USB_MAXENDPOINTS]; struct usb_endpoint_descriptor ep_desc[USB_MAXENDPOINTS];
/* /*
@ -73,7 +73,7 @@ struct usb_interface {
struct usb_config { struct usb_config {
struct usb_config_descriptor desc; struct usb_config_descriptor desc;
unsigned char no_of_if; /* number of interfaces */ __u8 no_of_if; /* number of interfaces */
struct usb_interface if_desc[USB_MAXINTERFACES]; struct usb_interface if_desc[USB_MAXINTERFACES];
} __attribute__ ((packed)); } __attribute__ ((packed));