aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/renesas_usbhs
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2011-10-11 01:04:23 -0400
committerFelipe Balbi <balbi@ti.com>2011-10-13 13:41:43 -0400
commit3cf8ed1284799406c506029207004e97d5b2c738 (patch)
treed93b8b404b0edc8c4b7bdd2c1d29a5b67a3a67cf /drivers/usb/renesas_usbhs
parentbc6fbf59df75c4e3533d0daf7873f783c835bd53 (diff)
usb: gadget: renesas_usbhs: add usbhs_pipe_name()
pipe name is usefull function for mod_xxx Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/renesas_usbhs')
-rw-r--r--drivers/usb/renesas_usbhs/pipe.c7
-rw-r--r--drivers/usb/renesas_usbhs/pipe.h1
2 files changed, 7 insertions, 1 deletions
diff --git a/drivers/usb/renesas_usbhs/pipe.c b/drivers/usb/renesas_usbhs/pipe.c
index 4235a2ecebf9..7636f2353b9d 100644
--- a/drivers/usb/renesas_usbhs/pipe.c
+++ b/drivers/usb/renesas_usbhs/pipe.c
@@ -39,6 +39,11 @@ static char *usbhsp_pipe_name[] = {
39 [USB_ENDPOINT_XFER_ISOC] = "ISO", 39 [USB_ENDPOINT_XFER_ISOC] = "ISO",
40}; 40};
41 41
42char *usbhs_pipe_name(struct usbhs_pipe *pipe)
43{
44 return usbhsp_pipe_name[usbhs_pipe_type(pipe)];
45}
46
42/* 47/*
43 * DCPCTR/PIPEnCTR functions 48 * DCPCTR/PIPEnCTR functions
44 */ 49 */
@@ -592,7 +597,7 @@ struct usbhs_pipe *usbhs_pipe_malloc(struct usbhs_priv *priv,
592 597
593 dev_dbg(dev, "enable pipe %d : %s (%s)\n", 598 dev_dbg(dev, "enable pipe %d : %s (%s)\n",
594 usbhs_pipe_number(pipe), 599 usbhs_pipe_number(pipe),
595 usbhsp_pipe_name[endpoint_type], 600 usbhs_pipe_name(pipe),
596 usbhs_pipe_is_dir_in(pipe) ? "in" : "out"); 601 usbhs_pipe_is_dir_in(pipe) ? "in" : "out");
597 602
598 /* 603 /*
diff --git a/drivers/usb/renesas_usbhs/pipe.h b/drivers/usb/renesas_usbhs/pipe.h
index aff8bfa207d3..37018351f47c 100644
--- a/drivers/usb/renesas_usbhs/pipe.h
+++ b/drivers/usb/renesas_usbhs/pipe.h
@@ -73,6 +73,7 @@ struct usbhs_pipe_info {
73/* 73/*
74 * pipe control 74 * pipe control
75 */ 75 */
76char *usbhs_pipe_name(struct usbhs_pipe *pipe);
76struct usbhs_pipe 77struct usbhs_pipe
77*usbhs_pipe_malloc(struct usbhs_priv *priv, int endpoint_type, int dir_in); 78*usbhs_pipe_malloc(struct usbhs_priv *priv, int endpoint_type, int dir_in);
78int usbhs_pipe_probe(struct usbhs_priv *priv); 79int usbhs_pipe_probe(struct usbhs_priv *priv);