Fix some comments: Remove button description from GPIO interrupt handlers that derive from the button interrupt handler

This commit is contained in:
Gregory Nutt 2014-09-29 12:22:31 -06:00
parent 0cdd0bf667
commit bee22181f4
6 changed files with 12 additions and 12 deletions

View File

@ -317,7 +317,7 @@ xcpt_t arch_phy_irq(FAR const char *intf, xcpt_t handler, phy_enable_t *enable)
flags = irqsave();
/* Get the old button interrupt handler and save the new one */
/* Get the old interrupt handler and save the new one */
oldhandler = *phandler;
*phandler = handler;
@ -350,7 +350,7 @@ xcpt_t arch_phy_irq(FAR const char *intf, xcpt_t handler, phy_enable_t *enable)
*enable = enabler;
}
/* Return the old button handler (so that it can be restored) */
/* Return the old handler (so that it can be restored) */
irqrestore(flags);
return oldhandler;

View File

@ -486,7 +486,7 @@ xcpt_t sam_setup_overcurrent(xcpt_t handler)
flags = irqsave();
/* Get the old button interrupt handler and save the new one */
/* Get the old interrupt handler and save the new one */
oldhandler = g_ochandler;
g_ochandler = handler;
@ -497,7 +497,7 @@ xcpt_t sam_setup_overcurrent(xcpt_t handler)
(void)irq_attach(IRQ_USBBC_VBUS_OVERCURRENT, handler);
sam_pioirqenable(IRQ_USBBC_VBUS_OVERCURRENT);
/* Return the old button handler (so that it can be restored) */
/* Return the old handler (so that it can be restored) */
irqrestore(flags);
return oldhandler;

View File

@ -317,7 +317,7 @@ xcpt_t arch_phy_irq(FAR const char *intf, xcpt_t handler, phy_enable_t *enable)
flags = irqsave();
/* Get the old button interrupt handler and save the new one */
/* Get the old interrupt handler and save the new one */
oldhandler = *phandler;
*phandler = handler;
@ -350,7 +350,7 @@ xcpt_t arch_phy_irq(FAR const char *intf, xcpt_t handler, phy_enable_t *enable)
*enable = enabler;
}
/* Return the old button handler (so that it can be restored) */
/* Return the old handler (so that it can be restored) */
irqrestore(flags);
return oldhandler;

View File

@ -486,7 +486,7 @@ xcpt_t sam_setup_overcurrent(xcpt_t handler)
flags = irqsave();
/* Get the old button interrupt handler and save the new one */
/* Get the old interrupt handler and save the new one */
oldhandler = g_ochandler;
g_ochandler = handler;
@ -497,7 +497,7 @@ xcpt_t sam_setup_overcurrent(xcpt_t handler)
(void)irq_attach(IRQ_USBBC_VBUS_OVERCURRENT, handler);
sam_pioirqenable(IRQ_USBBC_VBUS_OVERCURRENT);
/* Return the old button handler (so that it can be restored) */
/* Return the old handler (so that it can be restored) */
irqrestore(flags);
return oldhandler;

View File

@ -286,7 +286,7 @@ xcpt_t arch_phy_irq(FAR const char *intf, xcpt_t handler, phy_enable_t *enable)
flags = irqsave();
/* Get the old button interrupt handler and save the new one */
/* Get the old interrupt handler and save the new one */
oldhandler = *phandler;
*phandler = handler;
@ -319,7 +319,7 @@ xcpt_t arch_phy_irq(FAR const char *intf, xcpt_t handler, phy_enable_t *enable)
*enable = enabler;
}
/* Return the old button handler (so that it can be restored) */
/* Return the old handler (so that it can be restored) */
irqrestore(flags);
return oldhandler;

View File

@ -487,7 +487,7 @@ xcpt_t sam_setup_overcurrent(xcpt_t handler)
flags = irqsave();
/* Get the old button interrupt handler and save the new one */
/* Get the old interrupt handler and save the new one */
oldhandler = g_ochandler;
g_ochandler = handler;
@ -498,7 +498,7 @@ xcpt_t sam_setup_overcurrent(xcpt_t handler)
(void)irq_attach(IRQ_USBBC_VBUS_OVERCURRENT, handler);
sam_pioirqenable(IRQ_USBBC_VBUS_OVERCURRENT);
/* Return the old button handler (so that it can be restored) */
/* Return the old handler (so that it can be restored) */
irqrestore(flags);
return oldhandler;