MLK-22357-1 usb: Add handle_interrupts function pointer for UCLASS_USB_GADGET_GENERIC
authorSherry Sun <sherry.sun@nxp.com>
Wed, 31 Jul 2019 00:42:02 +0000 (20:42 -0400)
committerSherry Sun <sherry.sun@nxp.com>
Thu, 8 Aug 2019 17:12:57 +0000 (13:12 -0400)
commit2458ddd952a6a2d2304dfe7ea34e4192cd1d5ed4
tree567468ad9725e861170938fb05379f31c3772b43
parent87e86f40556ab4fe8d4ea63b4bdbb7de2916a440
MLK-22357-1 usb: Add handle_interrupts function pointer for UCLASS_USB_GADGET_GENERIC

Since the orginal way to call interrupts handle function of DM usb
gadget driver is through dm_usb_gadget_handle_interrupts(), when we want
to use two or more different gadget drivers at the same time, it will
cause error of duplicate names.

So here add a handle_interrupts function pointer instead of driectly
call dm_usb_gadget_handle_interrupts(), then the error can be avoided.

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
drivers/usb/cdns3/cdns3-generic.c
drivers/usb/dwc3/dwc3-generic.c
drivers/usb/gadget/ci_udc.c
drivers/usb/gadget/udc/udc-uclass.c
drivers/usb/musb-new/ti-musb.c
include/dm/device.h
include/linux/usb/gadget.h