usb: gadget: s3c2410_udc: add ep capabilities support

Convert endpoint configuration to new capabilities model.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
Robert Baldyga 2015-07-31 16:00:43 +02:00 committed by Felipe Balbi
parent bc1b9f300a
commit 0648772d51
1 changed files with 10 additions and 0 deletions

View File

@ -1691,6 +1691,8 @@ static struct s3c2410_udc memory = {
.name = ep0name, .name = ep0name,
.ops = &s3c2410_ep_ops, .ops = &s3c2410_ep_ops,
.maxpacket = EP0_FIFO_SIZE, .maxpacket = EP0_FIFO_SIZE,
.caps = USB_EP_CAPS(USB_EP_CAPS_TYPE_CONTROL,
USB_EP_CAPS_DIR_ALL),
}, },
.dev = &memory, .dev = &memory,
}, },
@ -1702,6 +1704,8 @@ static struct s3c2410_udc memory = {
.name = "ep1-bulk", .name = "ep1-bulk",
.ops = &s3c2410_ep_ops, .ops = &s3c2410_ep_ops,
.maxpacket = EP_FIFO_SIZE, .maxpacket = EP_FIFO_SIZE,
.caps = USB_EP_CAPS(USB_EP_CAPS_TYPE_BULK,
USB_EP_CAPS_DIR_ALL),
}, },
.dev = &memory, .dev = &memory,
.fifo_size = EP_FIFO_SIZE, .fifo_size = EP_FIFO_SIZE,
@ -1714,6 +1718,8 @@ static struct s3c2410_udc memory = {
.name = "ep2-bulk", .name = "ep2-bulk",
.ops = &s3c2410_ep_ops, .ops = &s3c2410_ep_ops,
.maxpacket = EP_FIFO_SIZE, .maxpacket = EP_FIFO_SIZE,
.caps = USB_EP_CAPS(USB_EP_CAPS_TYPE_BULK,
USB_EP_CAPS_DIR_ALL),
}, },
.dev = &memory, .dev = &memory,
.fifo_size = EP_FIFO_SIZE, .fifo_size = EP_FIFO_SIZE,
@ -1726,6 +1732,8 @@ static struct s3c2410_udc memory = {
.name = "ep3-bulk", .name = "ep3-bulk",
.ops = &s3c2410_ep_ops, .ops = &s3c2410_ep_ops,
.maxpacket = EP_FIFO_SIZE, .maxpacket = EP_FIFO_SIZE,
.caps = USB_EP_CAPS(USB_EP_CAPS_TYPE_BULK,
USB_EP_CAPS_DIR_ALL),
}, },
.dev = &memory, .dev = &memory,
.fifo_size = EP_FIFO_SIZE, .fifo_size = EP_FIFO_SIZE,
@ -1738,6 +1746,8 @@ static struct s3c2410_udc memory = {
.name = "ep4-bulk", .name = "ep4-bulk",
.ops = &s3c2410_ep_ops, .ops = &s3c2410_ep_ops,
.maxpacket = EP_FIFO_SIZE, .maxpacket = EP_FIFO_SIZE,
.caps = USB_EP_CAPS(USB_EP_CAPS_TYPE_BULK,
USB_EP_CAPS_DIR_ALL),
}, },
.dev = &memory, .dev = &memory,
.fifo_size = EP_FIFO_SIZE, .fifo_size = EP_FIFO_SIZE,