usb: phy: ab8500: use correct enum type
authorStefan Agner <stefan@agner.ch>
Sun, 11 Feb 2018 23:19:11 +0000 (00:19 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 8 Mar 2018 13:12:00 +0000 (15:12 +0200)
The local variable event is of type enum usb_phy_events. Use
the same enum value USB_EVENT_NONE instead of UX500_MUSB_NONE.

This avoids a warning when building with clang:
  drivers/usb/phy/phy-ab8500-usb.c:906:30: warning: implicit conversion from
  enumeration type 'enum ux500_musb_vbus_id_status' to different enumeration
  type 'enum usb_phy_events' [-Wenum-conversion]
        enum usb_phy_events event = UX500_MUSB_NONE;
                            ~~~~~   ^~~~~~~~~~~~~~~

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/phy/phy-ab8500-usb.c

index 8729531..55655ec 100644 (file)
@@ -889,7 +889,7 @@ static int abx500_usb_link_status_update(struct ab8500_usb *ab)
 static irqreturn_t ab8500_usb_disconnect_irq(int irq, void *data)
 {
        struct ab8500_usb *ab = (struct ab8500_usb *) data;
-       enum usb_phy_events event = UX500_MUSB_NONE;
+       enum usb_phy_events event = USB_EVENT_NONE;
 
        /* Link status will not be updated till phy is disabled. */
        if (ab->mode == USB_HOST) {