ANDROID: usb: gadget: configfs: Move CONFIGFS_UEVENT #endif

Move the CONFIG_USB_CONFIGFS_UEVENT #endif to cover the
configfs_composite_reset() function to prevent an unused function
warning when this config is unset.

Fixes: 2db4f2a2a8 ("FROMGIT: usb: gadget: configfs: Add a specific configFS reset callback")
Signed-off-by: J. Avila <elavila@google.com>
Change-Id: I61adc4516dc2574cc7d7a02bcc3fa7d86b8efd1d
This commit is contained in:
J. Avila
2021-02-05 00:31:06 +00:00
parent 4240e9f97f
commit 23707802ec

View File

@@ -1645,8 +1645,6 @@ static void configfs_composite_disconnect(struct usb_gadget *gadget)
spin_unlock_irqrestore(&gi->spinlock, flags);
}
#endif // CONFIG_USB_CONFIGFS_UEVENT
static void configfs_composite_reset(struct usb_gadget *gadget)
{
struct usb_composite_dev *cdev;
@@ -1669,6 +1667,8 @@ static void configfs_composite_reset(struct usb_gadget *gadget)
spin_unlock_irqrestore(&gi->spinlock, flags);
}
#endif // CONFIG_USB_CONFIGFS_UEVENT
static void configfs_composite_suspend(struct usb_gadget *gadget)
{
struct usb_composite_dev *cdev;