]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
usb: gadget: Mark udc_disconnect as static
authorTom Rini <trini@konsulko.com>
Tue, 24 Feb 2026 15:45:04 +0000 (09:45 -0600)
committerMattijs Korpershoek <mkorpershoek@kernel.org>
Tue, 3 Mar 2026 08:09:43 +0000 (09:09 +0100)
With the last external callers of udc_disconnect long removed, mark this
function as static now and remove it from headers.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
Link: https://patch.msgid.link/20260224154504.85301-1-trini@konsulko.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
arch/arm/include/asm/bootm.h
drivers/usb/gadget/ci_udc.c
include/usb.h
include/usb/udc.h

index 439e43c2d01773dc7a210eac6376f5d17d23fd9c..762f00e69004ebba45aafad6ced4385d7d6f1248 100644 (file)
@@ -8,8 +8,6 @@
 #ifndef ARM_BOOTM_H
 #define ARM_BOOTM_H
 
-extern void udc_disconnect(void);
-
 #ifdef CONFIG_SUPPORT_PASSING_ATAGS
 # define BOOTM_ENABLE_TAGS             1
 #else
index 046bb335ecb5e5f341bed8ce2815466bbe6dfbed..4729570c525700b06a79f6f253a4c8f9eff35ce1 100644 (file)
@@ -990,7 +990,7 @@ int dm_usb_gadget_handle_interrupts(struct udevice *dev)
        return value;
 }
 
-void udc_disconnect(void)
+static void udc_disconnect(void)
 {
        struct ci_udc *udc = (struct ci_udc *)controller.ctrl->hcor;
        /* disable pullup */
index be37ed272e15438825eee135c207d4bce243959c..dab23753f0c02249bc0149579732d6955a477503 100644 (file)
@@ -208,15 +208,6 @@ void *poll_int_queue(struct usb_device *dev, struct int_queue *queue);
 #define USB_UHCI_VEND_ID       0x8086
 #define USB_UHCI_DEV_ID                0x7112
 
-/*
- * PXA25x can only act as USB device. There are drivers
- * which works with USB CDC gadgets implementations.
- * Some of them have common routines which can be used
- * in boards init functions e.g. udc_disconnect() used for
- * forced device disconnection from host.
- */
-extern void udc_disconnect(void);
-
 /*
  * board-specific hardware initialization, called by
  * usb drivers and u-boot commands
index 749b3a3f01568894436a0d91a11e3bc92bc1a0b7..c5e431813be7f6bfcf5197869ef82c790a5399d0 100644 (file)
@@ -39,7 +39,6 @@ int udc_endpoint_write(struct usb_endpoint_instance *endpoint);
 void udc_setup_ep(struct usb_device_instance *device, unsigned int ep,
                  struct usb_endpoint_instance *endpoint);
 void udc_connect(void);
-void udc_disconnect(void);
 void udc_enable(struct usb_device_instance *device);
 void udc_disable(void);
 void udc_startup_events(struct usb_device_instance *device);