mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
usb: gadget: Mark udc_disconnect as static
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>
This commit is contained in:
committed by
Mattijs Korpershoek
parent
8d24789abe
commit
7b60cd933b
@@ -8,8 +8,6 @@
|
|||||||
#ifndef ARM_BOOTM_H
|
#ifndef ARM_BOOTM_H
|
||||||
#define ARM_BOOTM_H
|
#define ARM_BOOTM_H
|
||||||
|
|
||||||
extern void udc_disconnect(void);
|
|
||||||
|
|
||||||
#ifdef CONFIG_SUPPORT_PASSING_ATAGS
|
#ifdef CONFIG_SUPPORT_PASSING_ATAGS
|
||||||
# define BOOTM_ENABLE_TAGS 1
|
# define BOOTM_ENABLE_TAGS 1
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -990,7 +990,7 @@ int dm_usb_gadget_handle_interrupts(struct udevice *dev)
|
|||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
void udc_disconnect(void)
|
static void udc_disconnect(void)
|
||||||
{
|
{
|
||||||
struct ci_udc *udc = (struct ci_udc *)controller.ctrl->hcor;
|
struct ci_udc *udc = (struct ci_udc *)controller.ctrl->hcor;
|
||||||
/* disable pullup */
|
/* disable pullup */
|
||||||
|
|||||||
@@ -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_VEND_ID 0x8086
|
||||||
#define USB_UHCI_DEV_ID 0x7112
|
#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
|
* board-specific hardware initialization, called by
|
||||||
* usb drivers and u-boot commands
|
* usb drivers and u-boot commands
|
||||||
|
|||||||
@@ -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,
|
void udc_setup_ep(struct usb_device_instance *device, unsigned int ep,
|
||||||
struct usb_endpoint_instance *endpoint);
|
struct usb_endpoint_instance *endpoint);
|
||||||
void udc_connect(void);
|
void udc_connect(void);
|
||||||
void udc_disconnect(void);
|
|
||||||
void udc_enable(struct usb_device_instance *device);
|
void udc_enable(struct usb_device_instance *device);
|
||||||
void udc_disable(void);
|
void udc_disable(void);
|
||||||
void udc_startup_events(struct usb_device_instance *device);
|
void udc_startup_events(struct usb_device_instance *device);
|
||||||
|
|||||||
Reference in New Issue
Block a user