usb: dwc3: gadget: slight cleanup to dwc3_process_event_entry()
No functional changes, just a slight readability improvement. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
parent
436841d53d
commit
dfc5e80578
|
@ -2972,20 +2972,12 @@ static void dwc3_process_event_entry(struct dwc3 *dwc,
|
||||||
{
|
{
|
||||||
trace_dwc3_event(event->raw, dwc);
|
trace_dwc3_event(event->raw, dwc);
|
||||||
|
|
||||||
/* Endpoint IRQ, handle it and return early */
|
if (!event->type.is_devspec)
|
||||||
if (event->type.is_devspec == 0) {
|
dwc3_endpoint_interrupt(dwc, &event->depevt);
|
||||||
/* depevt */
|
else if (event->type.type == DWC3_EVENT_TYPE_DEV)
|
||||||
return dwc3_endpoint_interrupt(dwc, &event->depevt);
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (event->type.type) {
|
|
||||||
case DWC3_EVENT_TYPE_DEV:
|
|
||||||
dwc3_gadget_interrupt(dwc, &event->devt);
|
dwc3_gadget_interrupt(dwc, &event->devt);
|
||||||
break;
|
else
|
||||||
/* REVISIT what to do with Carkit and I2C events ? */
|
|
||||||
default:
|
|
||||||
dev_err(dwc->dev, "UNKNOWN IRQ type %d\n", event->raw);
|
dev_err(dwc->dev, "UNKNOWN IRQ type %d\n", event->raw);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static irqreturn_t dwc3_process_event_buf(struct dwc3_event_buffer *evt)
|
static irqreturn_t dwc3_process_event_buf(struct dwc3_event_buffer *evt)
|
||||||
|
|
Loading…
Reference in New Issue