Commit 0c91ca47 authored by Sergey Senozhatsky's avatar Sergey Senozhatsky Committed by Felipe Balbi

usb: gadget: do not use __constant_cpu_to_le16

A trivial patch.

cpu_to_le16() is capable enough to detect __builtin_constant_p()
and to use an appropriate compile time ___constant_swahbXX()
function.

So we can use cpu_to_le16() instead of __constant_cpu_to_le16().
Signed-off-by: default avatarSergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 54f37f56
...@@ -54,8 +54,8 @@ static struct uac1_ac_header_descriptor_1 ac_header_desc = { ...@@ -54,8 +54,8 @@ static struct uac1_ac_header_descriptor_1 ac_header_desc = {
.bLength = UAC_DT_AC_HEADER_LENGTH, .bLength = UAC_DT_AC_HEADER_LENGTH,
.bDescriptorType = USB_DT_CS_INTERFACE, .bDescriptorType = USB_DT_CS_INTERFACE,
.bDescriptorSubtype = UAC_HEADER, .bDescriptorSubtype = UAC_HEADER,
.bcdADC = __constant_cpu_to_le16(0x0100), .bcdADC = cpu_to_le16(0x0100),
.wTotalLength = __constant_cpu_to_le16(UAC_DT_TOTAL_LENGTH), .wTotalLength = cpu_to_le16(UAC_DT_TOTAL_LENGTH),
.bInCollection = F_AUDIO_NUM_INTERFACES, .bInCollection = F_AUDIO_NUM_INTERFACES,
.baInterfaceNr = { .baInterfaceNr = {
/* Interface number of the first AudioStream interface */ /* Interface number of the first AudioStream interface */
...@@ -183,7 +183,7 @@ static struct uac_iso_endpoint_descriptor as_iso_out_desc = { ...@@ -183,7 +183,7 @@ static struct uac_iso_endpoint_descriptor as_iso_out_desc = {
.bDescriptorSubtype = UAC_EP_GENERAL, .bDescriptorSubtype = UAC_EP_GENERAL,
.bmAttributes = 1, .bmAttributes = 1,
.bLockDelayUnits = 1, .bLockDelayUnits = 1,
.wLockDelay = __constant_cpu_to_le16(1), .wLockDelay = cpu_to_le16(1),
}; };
static struct usb_descriptor_header *f_audio_desc[] = { static struct usb_descriptor_header *f_audio_desc[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment