static irqreturn_t smartq_usb_host_ocirq(int irq, void *pw) { struct s3c2410_hcd_info *info = pw; if (gpio_get_value(S3C64XX_GPL(10)) == 0) { pr_debug("%s: over-current irq (oc detected)\n", __func__); s3c2410_usb_report_oc(info, 3); } else { pr_debug("%s: over-current irq (oc cleared)\n", __func__); s3c2410_usb_report_oc(info, 0); } return IRQ_HANDLED; }
static irqreturn_t usb_simtec_ocirq(int irq, void *pw, struct pt_regs *regs) { struct s3c2410_hcd_info *info = (struct s3c2410_hcd_info *)pw; if (s3c2410_gpio_getpin(S3C2410_GPG10) == 0) { pr_debug("usb_simtec: over-current irq (oc detected)\n"); s3c2410_usb_report_oc(info, 3); } else { pr_debug("usb_simtec: over-current irq (oc cleared)\n"); s3c2410_usb_report_oc(info, 0); } return IRQ_HANDLED; }
static irqreturn_t usb_simtec_ocirq(int irq, void *pw) { struct s3c2410_hcd_info *info = pw; if (gpio_get_value(S3C2410_GPG(10)) == 0) { pr_debug("usb_simtec: over-current irq (oc detected)\n"); s3c2410_usb_report_oc(info, 3); } else { pr_debug("usb_simtec: over-current irq (oc cleared)\n"); s3c2410_usb_report_oc(info, 0); } return IRQ_HANDLED; }