aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2011-10-06 15:36:26 -0400
committerFelipe Balbi <balbi@ti.com>2011-10-13 13:39:54 -0400
commit1a8060d9e5c0d9488f7f1aa830ed37adcaba6adb (patch)
tree1a118eff9dccc298caf970708e44ba24236ab2c7 /drivers/usb/gadget
parentd5546b380583f009bc18504e7f946fa16d861381 (diff)
usb: gadget: at91_udc: change french comments to english
While being there, change C++ style comments to /* */. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> Cc: Greg Kroah-Hartman <gregkh@suse.de> Cc: linux-usb@vger.kernel.org Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/at91_udc.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/usb/gadget/at91_udc.c b/drivers/usb/gadget/at91_udc.c
index e10cf3c63929..8efe0fa9228d 100644
--- a/drivers/usb/gadget/at91_udc.c
+++ b/drivers/usb/gadget/at91_udc.c
@@ -450,7 +450,7 @@ static void nuke(struct at91_ep *ep, int status)
450{ 450{
451 struct at91_request *req; 451 struct at91_request *req;
452 452
453 // terminer chaque requete dans la queue 453 /* terminate any request in the queue */
454 ep->stopped = 1; 454 ep->stopped = 1;
455 if (list_empty(&ep->queue)) 455 if (list_empty(&ep->queue))
456 return; 456 return;
@@ -778,7 +778,7 @@ static const struct usb_ep_ops at91_ep_ops = {
778 .queue = at91_ep_queue, 778 .queue = at91_ep_queue,
779 .dequeue = at91_ep_dequeue, 779 .dequeue = at91_ep_dequeue,
780 .set_halt = at91_ep_set_halt, 780 .set_halt = at91_ep_set_halt,
781 // there's only imprecise fifo status reporting 781 /* there's only imprecise fifo status reporting */
782}; 782};
783 783
784/*-------------------------------------------------------------------------*/ 784/*-------------------------------------------------------------------------*/
@@ -836,7 +836,7 @@ static void udc_reinit(struct at91_udc *udc)
836 ep->fifo_bank = 0; 836 ep->fifo_bank = 0;
837 ep->ep.maxpacket = ep->maxpacket; 837 ep->ep.maxpacket = ep->maxpacket;
838 ep->creg = (void __iomem *) udc->udp_baseaddr + AT91_UDP_CSR(i); 838 ep->creg = (void __iomem *) udc->udp_baseaddr + AT91_UDP_CSR(i);
839 // initialiser une queue par endpoint 839 /* initialize one queue per endpoint */
840 INIT_LIST_HEAD(&ep->queue); 840 INIT_LIST_HEAD(&ep->queue);
841 } 841 }
842} 842}
@@ -942,7 +942,7 @@ static int at91_vbus_session(struct usb_gadget *gadget, int is_active)
942 struct at91_udc *udc = to_udc(gadget); 942 struct at91_udc *udc = to_udc(gadget);
943 unsigned long flags; 943 unsigned long flags;
944 944
945 // VDBG("vbus %s\n", is_active ? "on" : "off"); 945 /* VDBG("vbus %s\n", is_active ? "on" : "off"); */
946 spin_lock_irqsave(&udc->lock, flags); 946 spin_lock_irqsave(&udc->lock, flags);
947 udc->vbus = (is_active != 0); 947 udc->vbus = (is_active != 0);
948 if (udc->driver) 948 if (udc->driver)
@@ -993,7 +993,7 @@ static const struct usb_gadget_ops at91_udc_ops = {
993 * VBUS-powered devices may also also want to support bigger 993 * VBUS-powered devices may also also want to support bigger
994 * power budgets after an appropriate SET_CONFIGURATION. 994 * power budgets after an appropriate SET_CONFIGURATION.
995 */ 995 */
996 // .vbus_power = at91_vbus_power, 996 /* .vbus_power = at91_vbus_power, */
997}; 997};
998 998
999/*-------------------------------------------------------------------------*/ 999/*-------------------------------------------------------------------------*/
@@ -1062,7 +1062,7 @@ static void handle_setup(struct at91_udc *udc, struct at91_ep *ep, u32 csr)
1062 ep->is_in = 0; 1062 ep->is_in = 0;
1063 } 1063 }
1064 } else { 1064 } else {
1065 // REVISIT this happens sometimes under load; why?? 1065 /* REVISIT this happens sometimes under load; why?? */
1066 ERR("SETUP len %d, csr %08x\n", rxcount, csr); 1066 ERR("SETUP len %d, csr %08x\n", rxcount, csr);
1067 status = -EINVAL; 1067 status = -EINVAL;
1068 } 1068 }
@@ -1441,7 +1441,7 @@ static irqreturn_t at91_udc_irq (int irq, void *_udc)
1441 at91_udp_write(udc, AT91_UDP_IDR, AT91_UDP_RXSUSP); 1441 at91_udp_write(udc, AT91_UDP_IDR, AT91_UDP_RXSUSP);
1442 at91_udp_write(udc, AT91_UDP_IER, AT91_UDP_RXRSM); 1442 at91_udp_write(udc, AT91_UDP_IER, AT91_UDP_RXRSM);
1443 at91_udp_write(udc, AT91_UDP_ICR, AT91_UDP_RXSUSP); 1443 at91_udp_write(udc, AT91_UDP_ICR, AT91_UDP_RXSUSP);
1444 // VDBG("bus suspend\n"); 1444 /* VDBG("bus suspend\n"); */
1445 if (udc->suspended) 1445 if (udc->suspended)
1446 continue; 1446 continue;
1447 udc->suspended = 1; 1447 udc->suspended = 1;
@@ -1463,7 +1463,7 @@ static irqreturn_t at91_udc_irq (int irq, void *_udc)
1463 at91_udp_write(udc, AT91_UDP_IDR, AT91_UDP_RXRSM); 1463 at91_udp_write(udc, AT91_UDP_IDR, AT91_UDP_RXRSM);
1464 at91_udp_write(udc, AT91_UDP_IER, AT91_UDP_RXSUSP); 1464 at91_udp_write(udc, AT91_UDP_IER, AT91_UDP_RXSUSP);
1465 at91_udp_write(udc, AT91_UDP_ICR, AT91_UDP_RXRSM); 1465 at91_udp_write(udc, AT91_UDP_ICR, AT91_UDP_RXRSM);
1466 // VDBG("bus resume\n"); 1466 /* VDBG("bus resume\n"); */
1467 if (!udc->suspended) 1467 if (!udc->suspended)
1468 continue; 1468 continue;
1469 udc->suspended = 0; 1469 udc->suspended = 0;