]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
usb: dwc3: meson-g12a: drop usb.h and make dwc3_meson_g12a_force_mode static
authorNeil Armstrong <neil.armstrong@linaro.org>
Thu, 20 Jun 2024 07:42:54 +0000 (09:42 +0200)
committerNeil Armstrong <neil.armstrong@linaro.org>
Tue, 25 Jun 2024 13:25:10 +0000 (15:25 +0200)
Drop this useless usb.h and now make dwc3_meson_g12a_force_mode
static since only used in the dwc3-meson-g12a.c file.

Reviewed-by: Marek Vasut <marex@denx.de>
Link: https://lore.kernel.org/r/20240620-u-boot-usb-gxl-phy-set-mode-v2-5-b81c027bc02c@linaro.org
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
arch/arm/include/asm/arch-meson/usb.h [deleted file]
drivers/usb/dwc3/dwc3-meson-g12a.c

diff --git a/arch/arm/include/asm/arch-meson/usb.h b/arch/arm/include/asm/arch-meson/usb.h
deleted file mode 100644 (file)
index b794b5c..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright (C) 2019 BayLibre, SAS
- * Author: Neil Armstrong <narmstrong@baylibre.com>
- */
-
-#ifndef __MESON_USB_H__
-#define __MESON_USB_H__
-
-int dwc3_meson_g12a_force_mode(struct udevice *dev, enum usb_dr_mode mode);
-
-#endif /* __MESON_USB_H__ */
index 21e4f637bb150fb527c3f01fc641010c1eef5c74..41d15996e5b2afdee2460c940f5650e8424da412 100644 (file)
@@ -270,7 +270,7 @@ static int dwc3_meson_g12a_usb_init(struct dwc3_meson_g12a *priv)
        return 0;
 }
 
-int dwc3_meson_g12a_force_mode(struct udevice *dev, enum usb_dr_mode mode)
+static int dwc3_meson_g12a_force_mode(struct udevice *dev, enum usb_dr_mode mode)
 {
        struct dwc3_meson_g12a *priv = dev_get_plat(dev);