phy: Explicitly include correct DT includes
Subsystems (31)
PATCH 1/1 phy: Explicitly include correct DT includes
The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it as merged into the regular platform bus. As part of that merge prepping Arm DT support 13 years ago, they "temporarily" include each other. They also include platform_device.h and of.h. As a result, there's a pretty much random mix of those include files used throughout the tree. In order to detangle these headers and replace the implicit includes with struct declarations, users need to explicitly include the correct includes.
--- drivers/phy/allwinner/phy-sun4i-usb.c | 2 -- drivers/phy/allwinner/phy-sun50i-usb3.c | 1 + drivers/phy/amlogic/phy-meson-axg-mipi-dphy.c | 2 +- drivers/phy/amlogic/phy-meson-axg-mipi-pcie-analog.c | 1 + drivers/phy/amlogic/phy-meson-axg-pcie.c | 1 + drivers/phy/amlogic/phy-meson-g12a-mipi-dphy-analog.c | 1 + drivers/phy/amlogic/phy-meson-g12a-usb2.c | 2 +- drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c | 2 +- drivers/phy/amlogic/phy-meson-gxl-usb2.c | 2 +- drivers/phy/amlogic/phy-meson8-hdmi-tx.c | 2 +- drivers/phy/amlogic/phy-meson8b-usb2.c | 2 +- drivers/phy/broadcom/phy-bcm63xx-usbh.c | 1 + drivers/phy/broadcom/phy-brcm-usb.c | 1 - drivers/phy/cadence/cdns-dphy-rx.c | 1 + drivers/phy/cadence/cdns-dphy.c | 3 +-- drivers/phy/cadence/phy-cadence-torrent.c | 2 -- drivers/phy/freescale/phy-fsl-imx8m-pcie.c | 2 +- drivers/phy/freescale/phy-fsl-imx8mq-usb.c | 2 +- drivers/phy/freescale/phy-fsl-lynx-28g.c | 1 + drivers/phy/hisilicon/phy-hi3660-usb3.c | 1 + drivers/phy/hisilicon/phy-hi3670-usb3.c | 1 + drivers/phy/hisilicon/phy-hi6220-usb.c | 1 + drivers/phy/hisilicon/phy-hisi-inno-usb2.c | 3 ++- drivers/phy/hisilicon/phy-histb-combphy.c | 3 ++- drivers/phy/hisilicon/phy-hix5hd2-sata.c | 1 + drivers/phy/ingenic/phy-ingenic-usb.c | 1 + drivers/phy/lantiq/phy-lantiq-rcu-usb2.c | 1 - drivers/phy/marvell/phy-armada38x-comphy.c | 1 + drivers/phy/marvell/phy-berlin-sata.c | 1 + drivers/phy/marvell/phy-mmp3-hsic.c | 1 + drivers/phy/marvell/phy-mmp3-usb.c | 1 + drivers/phy/marvell/phy-mvebu-a3700-comphy.c | 1 + drivers/phy/marvell/phy-mvebu-a3700-utmi.c | 2 +- drivers/phy/marvell/phy-mvebu-cp110-comphy.c | 1 + drivers/phy/marvell/phy-mvebu-cp110-utmi.c | 2 +- drivers/phy/marvell/phy-mvebu-sata.c | 1 + drivers/phy/marvell/phy-pxa-28nm-usb2.c | 1 - drivers/phy/mediatek/phy-mtk-hdmi.h | 1 - drivers/phy/mediatek/phy-mtk-mipi-dsi.h | 1 - drivers/phy/mediatek/phy-mtk-pcie.c | 2 +- drivers/phy/mediatek/phy-mtk-tphy.c | 2 +- drivers/phy/mediatek/phy-mtk-ufs.c | 1 + drivers/phy/phy-can-transceiver.c | 1 + drivers/phy/phy-xgene.c | 1 + drivers/phy/qualcomm/phy-ath79-usb.c | 1 + drivers/phy/qualcomm/phy-qcom-edp.c | 2 -- drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c | 1 - drivers/phy/qualcomm/phy-qcom-ipq4019-usb.c | 3 +-- drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c | 2 +- drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 1 - drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c | 1 - drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 1 - drivers/phy/qualcomm/phy-qcom-qmp-ufs.c | 1 - drivers/phy/qualcomm/phy-qcom-qmp-usb.c | 1 - drivers/phy/qualcomm/phy-qcom-qusb2.c | 1 - drivers/phy/qualcomm/phy-qcom-snps-eusb2.c | 1 + drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c | 1 - drivers/phy/qualcomm/phy-qcom-usb-hs.c | 2 +- drivers/phy/ralink/phy-mt7621-pci.c | 3 +-- drivers/phy/renesas/phy-rcar-gen2.c | 1 - drivers/phy/renesas/phy-rcar-gen3-pcie.c | 1 - drivers/phy/renesas/phy-rcar-gen3-usb2.c | 2 -- drivers/phy/renesas/r8a779f0-ether-serdes.c | 1 + drivers/phy/rockchip/phy-rockchip-dphy-rx0.c | 1 - drivers/phy/rockchip/phy-rockchip-inno-dsidphy.c | 2 +- drivers/phy/rockchip/phy-rockchip-inno-hdmi.c | 1 - drivers/phy/rockchip/phy-rockchip-naneng-combphy.c | 3 ++- drivers/phy/rockchip/phy-rockchip-snps-pcie3.c | 3 ++- drivers/phy/samsung/phy-exynos-dp-video.c | 2 -- drivers/phy/samsung/phy-exynos-mipi-video.c | 3 +-- drivers/phy/samsung/phy-exynos5-usbdrd.c | 2 -- drivers/phy/samsung/phy-samsung-usb2.c | 2 -- drivers/phy/socionext/phy-uniphier-pcie.c | 2 +- drivers/phy/st/phy-spear1310-miphy.c | 3 ++- drivers/phy/st/phy-spear1340-miphy.c | 3 ++- drivers/phy/st/phy-stm32-usbphyc.c | 3 ++- drivers/phy/sunplus/phy-sunplus-usb2.c | 2 +- drivers/phy/tegra/phy-tegra194-p2u.c | 2 +- drivers/phy/tegra/xusb.c | 3 ++- drivers/phy/ti/phy-tusb1210.c | 1 + drivers/phy/ti/phy-twl4030-usb.c | 1 + 81 files changed, 65 insertions(+), 65 deletions(-)
drivers/phy/allwinner/phy-sun4i-usb.c +0 -2
@@ -23,8 +23,6 @@#include <linux/module.h> #include <linux/mutex.h> #include <linux/of.h> -#include <linux/of_address.h> -#include <linux/of_device.h> #include <linux/of_gpio.h> #include <linux/phy/phy.h> #include <linux/phy/phy-sun4i-usb.h>
drivers/phy/allwinner/phy-sun50i-usb3.c +1 -0
@@ -16,6 +16,7 @@#include <linux/clk.h> #include <linux/err.h> #include <linux/io.h> +#include <linux/mod_devicetable.h> #include <linux/module.h> #include <linux/phy/phy.h> #include <linux/platform_device.h>
drivers/phy/amlogic/phy-meson-axg-mipi-dphy.c +1 -1
@@ -13,8 +13,8 @@#include <linux/clk.h> #include <linux/delay.h> #include <linux/io.h> +#include <linux/mod_devicetable.h> #include <linux/module.h> -#include <linux/of_device.h> #include <linux/regmap.h> #include <linux/reset.h> #include <linux/phy/phy.h>
drivers/phy/amlogic/phy-meson-axg-mipi-pcie-analog.c +1 -0
@@ -11,6 +11,7 @@#include <linux/regmap.h> #include <linux/delay.h> #include <linux/mfd/syscon.h> +#include <linux/of.h> #include <linux/platform_device.h> #include <dt-bindings/phy/phy.h>
drivers/phy/amlogic/phy-meson-axg-pcie.c +1 -0
@@ -4,6 +4,7 @@* * Copyright (C) 2020 Remi Pommarel <[email protected]> */ +#include <linux/mod_devicetable.h> #include <linux/module.h> #include <linux/phy/phy.h> #include <linux/regmap.h>
drivers/phy/amlogic/phy-meson-g12a-mipi-dphy-analog.c +1 -0
@@ -13,6 +13,7 @@#include <linux/regmap.h> #include <linux/delay.h> #include <linux/mfd/syscon.h> +#include <linux/of.h> #include <linux/platform_device.h> #include <dt-bindings/phy/phy.h>
drivers/phy/amlogic/phy-meson-g12a-usb2.c +1 -1
@@ -14,7 +14,7 @@#include <linux/delay.h> #include <linux/io.h> #include <linux/module.h> -#include <linux/of_device.h> +#include <linux/of.h> #include <linux/regmap.h> #include <linux/reset.h> #include <linux/phy/phy.h>
drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c +1 -1
@@ -11,7 +11,7 @@#include <linux/bitops.h> #include <linux/clk.h> #include <linux/module.h> -#include <linux/of_device.h> +#include <linux/of.h> #include <linux/phy/phy.h> #include <linux/regmap.h> #include <linux/reset.h>
drivers/phy/amlogic/phy-meson-gxl-usb2.c +1 -1
@@ -8,8 +8,8 @@#include <linux/clk.h> #include <linux/delay.h> #include <linux/io.h> +#include <linux/mod_devicetable.h> #include <linux/module.h> -#include <linux/of_device.h> #include <linux/regmap.h> #include <linux/reset.h> #include <linux/phy/phy.h>
drivers/phy/amlogic/phy-meson8-hdmi-tx.c +1 -1
@@ -10,7 +10,7 @@#include <linux/clk.h> #include <linux/mfd/syscon.h> #include <linux/module.h> -#include <linux/of_device.h> +#include <linux/of.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/property.h>
drivers/phy/amlogic/phy-meson8b-usb2.c +1 -1
@@ -8,8 +8,8 @@#include <linux/clk.h> #include <linux/delay.h> #include <linux/io.h> +#include <linux/mod_devicetable.h> #include <linux/module.h> -#include <linux/of_device.h> #include <linux/property.h> #include <linux/regmap.h> #include <linux/reset.h>
drivers/phy/broadcom/phy-bcm63xx-usbh.c +1 -0
@@ -17,6 +17,7 @@#include <linux/clk.h> #include <linux/io.h> #include <linux/module.h> +#include <linux/of.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/reset.h>
drivers/phy/broadcom/phy-brcm-usb.c +0 -1
@@ -11,7 +11,6 @@#include <linux/io.h> #include <linux/module.h> #include <linux/of.h> -#include <linux/of_device.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/interrupt.h>
drivers/phy/cadence/cdns-dphy-rx.c +1 -0
@@ -7,6 +7,7 @@#include <linux/bitops.h> #include <linux/io.h> #include <linux/iopoll.h> +#include <linux/mod_devicetable.h> #include <linux/module.h> #include <linux/phy/phy.h> #include <linux/phy/phy-mipi-dphy.h>
drivers/phy/cadence/cdns-dphy.c +1 -2
@@ -9,8 +9,7 @@#include <linux/io.h> #include <linux/iopoll.h> #include <linux/module.h> -#include <linux/of_address.h> -#include <linux/of_device.h> +#include <linux/of.h> #include <linux/platform_device.h> #include <linux/reset.h>
drivers/phy/cadence/phy-cadence-torrent.c +0 -2
@@ -17,8 +17,6 @@#include <linux/kernel.h> #include <linux/module.h> #include <linux/of.h> -#include <linux/of_address.h> -#include <linux/of_device.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/reset.h>
drivers/phy/freescale/phy-fsl-imx8m-pcie.c +1 -1
@@ -11,7 +11,7 @@#include <linux/mfd/syscon.h> #include <linux/mfd/syscon/imx7-iomuxc-gpr.h> #include <linux/module.h> -#include <linux/of_device.h> +#include <linux/of.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/regmap.h>
drivers/phy/freescale/phy-fsl-imx8mq-usb.c +1 -1
@@ -6,7 +6,7 @@#include <linux/delay.h> #include <linux/io.h> #include <linux/module.h> -#include <linux/of_platform.h> +#include <linux/of.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/regulator/consumer.h>
drivers/phy/freescale/phy-fsl-lynx-28g.c +1 -0
@@ -2,6 +2,7 @@/* Copyright (c) 2021-2022 NXP. */ #include <linux/module.h> +#include <linux/of.h> #include <linux/phy.h> #include <linux/phy/phy.h> #include <linux/platform_device.h>
drivers/phy/hisilicon/phy-hi3660-usb3.c +1 -0
@@ -11,6 +11,7 @@#include <linux/kernel.h> #include <linux/mfd/syscon.h> #include <linux/module.h> +#include <linux/of.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/regmap.h>
drivers/phy/hisilicon/phy-hi3670-usb3.c +1 -0
@@ -13,6 +13,7 @@#include <linux/kernel.h> #include <linux/mfd/syscon.h> #include <linux/module.h> +#include <linux/of.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/regmap.h>
drivers/phy/hisilicon/phy-hi6220-usb.c +1 -0
@@ -5,6 +5,7 @@*/ #include <linux/mfd/syscon.h> +#include <linux/mod_devicetable.h> #include <linux/module.h> #include <linux/platform_device.h> #include <linux/phy/phy.h>
drivers/phy/hisilicon/phy-hisi-inno-usb2.c +2 -1
@@ -9,8 +9,9 @@#include <linux/delay.h> #include <linux/io.h> #include <linux/module.h> -#include <linux/of_device.h> +#include <linux/of.h> #include <linux/phy/phy.h> +#include <linux/platform_device.h> #include <linux/reset.h> #define INNO_PHY_PORT_NUM 2
drivers/phy/hisilicon/phy-histb-combphy.c +2 -1
@@ -13,8 +13,9 @@#include <linux/kernel.h> #include <linux/mfd/syscon.h> #include <linux/module.h> -#include <linux/of_device.h> +#include <linux/of.h> #include <linux/phy/phy.h> +#include <linux/platform_device.h> #include <linux/regmap.h> #include <linux/reset.h> #include <dt-bindings/phy/phy.h>
drivers/phy/hisilicon/phy-hix5hd2-sata.c +1 -0
@@ -8,6 +8,7 @@#include <linux/io.h> #include <linux/mfd/syscon.h> #include <linux/module.h> +#include <linux/of.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/regmap.h>
drivers/phy/ingenic/phy-ingenic-usb.c +1 -0
@@ -11,6 +11,7 @@#include <linux/delay.h> #include <linux/io.h> #include <linux/module.h> +#include <linux/of.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/regulator/consumer.h>
drivers/phy/lantiq/phy-lantiq-rcu-usb2.c +0 -1
@@ -12,7 +12,6 @@#include <linux/module.h> #include <linux/of.h> #include <linux/of_address.h> -#include <linux/of_device.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/property.h>
drivers/phy/marvell/phy-armada38x-comphy.c +1 -0
@@ -8,6 +8,7 @@#include <linux/delay.h> #include <linux/iopoll.h> #include <linux/module.h> +#include <linux/of.h> #include <linux/phy/phy.h> #include <linux/phy.h> #include <linux/platform_device.h>
drivers/phy/marvell/phy-berlin-sata.c +1 -0
@@ -9,6 +9,7 @@#include <linux/clk.h> #include <linux/module.h> +#include <linux/of.h> #include <linux/phy/phy.h> #include <linux/io.h> #include <linux/platform_device.h>
drivers/phy/marvell/phy-mmp3-hsic.c +1 -0
@@ -5,6 +5,7 @@#include <linux/delay.h> #include <linux/io.h> +#include <linux/mod_devicetable.h> #include <linux/module.h> #include <linux/phy/phy.h> #include <linux/platform_device.h>
drivers/phy/marvell/phy-mmp3-usb.c +1 -0
@@ -6,6 +6,7 @@#include <linux/delay.h> #include <linux/io.h> +#include <linux/mod_devicetable.h> #include <linux/module.h> #include <linux/phy/phy.h> #include <linux/platform_device.h>
drivers/phy/marvell/phy-mvebu-a3700-comphy.c +1 -0
@@ -19,6 +19,7 @@#include <linux/iopoll.h> #include <linux/mfd/syscon.h> #include <linux/module.h> +#include <linux/of.h> #include <linux/phy.h> #include <linux/phy/phy.h> #include <linux/platform_device.h>
drivers/phy/marvell/phy-mvebu-a3700-utmi.c +1 -1
@@ -13,7 +13,7 @@#include <linux/iopoll.h> #include <linux/mfd/syscon.h> #include <linux/module.h> -#include <linux/of_device.h> +#include <linux/of.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/regmap.h>
drivers/phy/marvell/phy-mvebu-cp110-comphy.c +1 -0
@@ -11,6 +11,7 @@#include <linux/iopoll.h> #include <linux/mfd/syscon.h> #include <linux/module.h> +#include <linux/of.h> #include <linux/phy.h> #include <linux/phy/phy.h> #include <linux/platform_device.h>
drivers/phy/marvell/phy-mvebu-cp110-utmi.c +1 -1
@@ -12,7 +12,7 @@#include <linux/iopoll.h> #include <linux/mfd/syscon.h> #include <linux/module.h> -#include <linux/of_device.h> +#include <linux/of.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/regmap.h>
drivers/phy/marvell/phy-mvebu-sata.c +1 -0
@@ -10,6 +10,7 @@#include <linux/clk.h> #include <linux/phy/phy.h> #include <linux/io.h> +#include <linux/mod_devicetable.h> #include <linux/platform_device.h> struct priv {
drivers/phy/marvell/phy-pxa-28nm-usb2.c +0 -1
@@ -11,7 +11,6 @@#include <linux/delay.h> #include <linux/slab.h> #include <linux/of.h> -#include <linux/of_device.h> #include <linux/io.h> #include <linux/iopoll.h> #include <linux/err.h>
drivers/phy/mediatek/phy-mtk-hdmi.h +0 -1
@@ -11,7 +11,6 @@#include <linux/delay.h> #include <linux/mfd/syscon.h> #include <linux/module.h> -#include <linux/of_device.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/types.h>
drivers/phy/mediatek/phy-mtk-mipi-dsi.h +0 -1
@@ -12,7 +12,6 @@#include <linux/delay.h> #include <linux/module.h> #include <linux/nvmem-consumer.h> -#include <linux/of_device.h> #include <linux/platform_device.h> #include <linux/phy/phy.h> #include <linux/slab.h>
drivers/phy/mediatek/phy-mtk-pcie.c +1 -1
@@ -7,7 +7,7 @@#include <linux/bitfield.h> #include <linux/module.h> #include <linux/nvmem-consumer.h> -#include <linux/of_device.h> +#include <linux/of.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/slab.h>
drivers/phy/mediatek/phy-mtk-tphy.c +1 -1
@@ -13,8 +13,8 @@#include <linux/mfd/syscon.h> #include <linux/module.h> #include <linux/nvmem-consumer.h> +#include <linux/of.h> #include <linux/of_address.h> -#include <linux/of_device.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/regmap.h>
drivers/phy/mediatek/phy-mtk-ufs.c +1 -0
@@ -7,6 +7,7 @@#include <linux/clk.h> #include <linux/delay.h> #include <linux/io.h> +#include <linux/mod_devicetable.h> #include <linux/module.h> #include <linux/phy/phy.h> #include <linux/platform_device.h>
drivers/phy/phy-can-transceiver.c +1 -0
@@ -5,6 +5,7 @@* Copyright (C) 2021 Texas Instruments Incorporated - https://www.ti.com * */ +#include <linux/of.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/module.h>
drivers/phy/phy-xgene.c +1 -0
@@ -39,6 +39,7 @@* Currently, this driver only supports Gen3 SATA mode with external clock. */ #include <linux/module.h> +#include <linux/of.h> #include <linux/platform_device.h> #include <linux/io.h> #include <linux/delay.h>
drivers/phy/qualcomm/phy-ath79-usb.c +1 -0
@@ -5,6 +5,7 @@* Copyright (C) 2015-2018 Alban Bedel <[email protected]> */ +#include <linux/mod_devicetable.h> #include <linux/module.h> #include <linux/platform_device.h> #include <linux/phy/phy.h>
drivers/phy/qualcomm/phy-qcom-edp.c +0 -2
@@ -13,8 +13,6 @@#include <linux/kernel.h> #include <linux/module.h> #include <linux/of.h> -#include <linux/of_device.h> -#include <linux/of_address.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/regulator/consumer.h>
drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c +0 -1
@@ -8,7 +8,6 @@#include <linux/regulator/consumer.h> #include <linux/regmap.h> #include <linux/of.h> -#include <linux/of_device.h> #include <linux/phy/phy.h> /* eUSB2 status registers */
drivers/phy/qualcomm/phy-qcom-ipq4019-usb.c +1 -2
@@ -13,8 +13,7 @@#include <linux/kernel.h> #include <linux/module.h> #include <linux/mutex.h> -#include <linux/of_platform.h> -#include <linux/of_device.h> +#include <linux/of.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/reset.h>
drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c +1 -1
@@ -4,7 +4,7 @@#include <linux/err.h> #include <linux/io.h> #include <linux/module.h> -#include <linux/of_device.h> +#include <linux/of.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/delay.h>
drivers/phy/qualcomm/phy-qcom-qmp-combo.c +0 -1
@@ -12,7 +12,6 @@#include <linux/kernel.h> #include <linux/module.h> #include <linux/of.h> -#include <linux/of_device.h> #include <linux/of_address.h> #include <linux/phy/phy.h> #include <linux/platform_device.h>
drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c +0 -1
@@ -12,7 +12,6 @@#include <linux/kernel.h> #include <linux/module.h> #include <linux/of.h> -#include <linux/of_device.h> #include <linux/of_address.h> #include <linux/phy/phy.h> #include <linux/platform_device.h>
drivers/phy/qualcomm/phy-qcom-qmp-pcie.c +0 -1
@@ -13,7 +13,6 @@#include <linux/mfd/syscon.h> #include <linux/module.h> #include <linux/of.h> -#include <linux/of_device.h> #include <linux/of_address.h> #include <linux/phy/pcie.h> #include <linux/phy/phy.h>
drivers/phy/qualcomm/phy-qcom-qmp-ufs.c +0 -1
@@ -12,7 +12,6 @@#include <linux/kernel.h> #include <linux/module.h> #include <linux/of.h> -#include <linux/of_device.h> #include <linux/of_address.h> #include <linux/phy/phy.h> #include <linux/platform_device.h>
drivers/phy/qualcomm/phy-qcom-qmp-usb.c +0 -1
@@ -12,7 +12,6 @@#include <linux/kernel.h> #include <linux/module.h> #include <linux/of.h> -#include <linux/of_device.h> #include <linux/of_address.h> #include <linux/phy/phy.h> #include <linux/platform_device.h>
drivers/phy/qualcomm/phy-qcom-qusb2.c +0 -1
@@ -12,7 +12,6 @@#include <linux/module.h> #include <linux/nvmem-consumer.h> #include <linux/of.h> -#include <linux/of_device.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/regmap.h>
drivers/phy/qualcomm/phy-qcom-snps-eusb2.c +1 -0
@@ -7,6 +7,7 @@#include <linux/clk.h> #include <linux/delay.h> #include <linux/iopoll.h> +#include <linux/mod_devicetable.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/regulator/consumer.h>
drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c +0 -1
@@ -10,7 +10,6 @@#include <linux/kernel.h> #include <linux/module.h> #include <linux/of.h> -#include <linux/of_device.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/regmap.h>
drivers/phy/qualcomm/phy-qcom-usb-hs.c +1 -1
@@ -7,7 +7,7 @@#include <linux/ulpi/regs.h> #include <linux/clk.h> #include <linux/regulator/consumer.h> -#include <linux/of_device.h> +#include <linux/of.h> #include <linux/phy/phy.h> #include <linux/reset.h> #include <linux/extcon.h>
drivers/phy/ralink/phy-mt7621-pci.c +1 -2
@@ -9,8 +9,7 @@#include <linux/bitfield.h> #include <linux/bitops.h> #include <linux/module.h> -#include <linux/of_address.h> -#include <linux/of_device.h> +#include <linux/of.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/regmap.h>
drivers/phy/renesas/phy-rcar-gen2.c +0 -1
@@ -16,7 +16,6 @@#include <linux/platform_device.h> #include <linux/spinlock.h> #include <linux/atomic.h> -#include <linux/of_device.h> #define USBHS_LPSTS 0x02#define USBHS_UGCTRL 0x80
drivers/phy/renesas/phy-rcar-gen3-pcie.c +0 -1
@@ -10,7 +10,6 @@#include <linux/module.h> #include <linux/of.h> #include <linux/phy/phy.h> -#include <linux/of_device.h> #include <linux/platform_device.h> #include <linux/spinlock.h>
drivers/phy/renesas/phy-rcar-gen3-usb2.c +0 -2
@@ -15,8 +15,6 @@#include <linux/module.h> #include <linux/mutex.h> #include <linux/of.h> -#include <linux/of_address.h> -#include <linux/of_device.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/pm_runtime.h>
drivers/phy/renesas/r8a779f0-ether-serdes.c +1 -0
@@ -8,6 +8,7 @@#include <linux/err.h> #include <linux/iopoll.h> #include <linux/kernel.h> +#include <linux/of.h> #include <linux/phy.h> #include <linux/phy/phy.h> #include <linux/platform_device.h>
drivers/phy/rockchip/phy-rockchip-dphy-rx0.c +0 -1
@@ -21,7 +21,6 @@#include <linux/mfd/syscon.h> #include <linux/module.h> #include <linux/of.h> -#include <linux/of_device.h> #include <linux/phy/phy.h> #include <linux/phy/phy-mipi-dphy.h> #include <linux/platform_device.h>
drivers/phy/rockchip/phy-rockchip-inno-dsidphy.c +1 -1
@@ -14,7 +14,7 @@#include <linux/init.h> #include <linux/mfd/syscon.h> #include <linux/module.h> -#include <linux/of_device.h> +#include <linux/of.h> #include <linux/platform_device.h> #include <linux/pm_runtime.h> #include <linux/reset.h>
drivers/phy/rockchip/phy-rockchip-inno-hdmi.c +0 -1
@@ -15,7 +15,6 @@#include <linux/module.h> #include <linux/nvmem-consumer.h> #include <linux/of.h> -#include <linux/of_device.h> #include <linux/platform_device.h> #include <linux/regmap.h> #include <linux/phy/phy.h>
drivers/phy/rockchip/phy-rockchip-naneng-combphy.c +2 -1
@@ -8,8 +8,9 @@#include <dt-bindings/phy/phy.h> #include <linux/clk.h> #include <linux/mfd/syscon.h> -#include <linux/of_device.h> +#include <linux/of.h> #include <linux/phy/phy.h> +#include <linux/platform_device.h> #include <linux/regmap.h> #include <linux/reset.h> #include <linux/units.h>
drivers/phy/rockchip/phy-rockchip-snps-pcie3.c +2 -1
@@ -12,9 +12,10 @@#include <linux/kernel.h> #include <linux/mfd/syscon.h> #include <linux/module.h> -#include <linux/of_device.h> +#include <linux/of.h> #include <linux/phy/pcie.h> #include <linux/phy/phy.h> +#include <linux/platform_device.h> #include <linux/regmap.h> #include <linux/reset.h>
drivers/phy/samsung/phy-exynos-dp-video.c +0 -2
@@ -12,8 +12,6 @@#include <linux/module.h> #include <linux/mfd/syscon.h> #include <linux/of.h> -#include <linux/of_address.h> -#include <linux/of_device.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/regmap.h>
drivers/phy/samsung/phy-exynos-mipi-video.c +1 -2
@@ -11,9 +11,8 @@#include <linux/kernel.h> #include <linux/module.h> #include <linux/of.h> -#include <linux/of_address.h> -#include <linux/of_device.h> #include <linux/phy/phy.h> +#include <linux/platform_device.h> #include <linux/regmap.h> #include <linux/spinlock.h> #include <linux/soc/samsung/exynos-regs-pmu.h>
drivers/phy/samsung/phy-exynos5-usbdrd.c +0 -2
@@ -14,8 +14,6 @@#include <linux/kernel.h> #include <linux/module.h> #include <linux/of.h> -#include <linux/of_address.h> -#include <linux/of_device.h> #include <linux/iopoll.h> #include <linux/phy/phy.h> #include <linux/platform_device.h>
drivers/phy/samsung/phy-samsung-usb2.c +0 -2
@@ -10,8 +10,6 @@#include <linux/mfd/syscon.h> #include <linux/module.h> #include <linux/of.h> -#include <linux/of_address.h> -#include <linux/of_device.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/spinlock.h>
drivers/phy/socionext/phy-uniphier-pcie.c +1 -1
@@ -11,7 +11,7 @@#include <linux/iopoll.h> #include <linux/mfd/syscon.h> #include <linux/module.h> -#include <linux/of_device.h> +#include <linux/of.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/regmap.h>
drivers/phy/st/phy-spear1310-miphy.c +2 -1
@@ -13,8 +13,9 @@#include <linux/kernel.h> #include <linux/mfd/syscon.h> #include <linux/module.h> -#include <linux/of_device.h> +#include <linux/of.h> #include <linux/phy/phy.h> +#include <linux/platform_device.h> #include <linux/regmap.h> /* SPEAr1310 Registers */
drivers/phy/st/phy-spear1340-miphy.c +2 -1
@@ -13,8 +13,9 @@#include <linux/kernel.h> #include <linux/mfd/syscon.h> #include <linux/module.h> -#include <linux/of_device.h> +#include <linux/of.h> #include <linux/phy/phy.h> +#include <linux/platform_device.h> #include <linux/regmap.h> /* SPEAr1340 Registers */
drivers/phy/st/phy-stm32-usbphyc.c +2 -1
@@ -12,8 +12,9 @@#include <linux/iopoll.h> #include <linux/kernel.h> #include <linux/module.h> -#include <linux/of_platform.h> +#include <linux/of.h> #include <linux/phy/phy.h> +#include <linux/platform_device.h> #include <linux/reset.h> #include <linux/units.h>
drivers/phy/sunplus/phy-sunplus-usb2.c +1 -1
@@ -16,7 +16,7 @@#include <linux/io.h> #include <linux/module.h> #include <linux/nvmem-consumer.h> -#include <linux/of_platform.h> +#include <linux/of.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/reset.h>
drivers/phy/tegra/phy-tegra194-p2u.c +1 -1
@@ -11,8 +11,8 @@#include <linux/io.h> #include <linux/module.h> #include <linux/of.h> -#include <linux/of_platform.h> #include <linux/phy/phy.h> +#include <linux/platform_device.h> #define P2U_CONTROL_CMN 0x74#define P2U_CONTROL_CMN_ENABLE_L2_EXIT_RATE_CHANGE BIT(13)
drivers/phy/tegra/xusb.c +2 -1
@@ -8,10 +8,11 @@#include <linux/mailbox_client.h> #include <linux/module.h> #include <linux/of.h> -#include <linux/of_device.h> +#include <linux/of_platform.h> #include <linux/phy/phy.h> #include <linux/phy/tegra/xusb.h> #include <linux/platform_device.h> +#include <linux/platform_device.h> #include <linux/regulator/consumer.h> #include <linux/reset.h> #include <linux/slab.h>
drivers/phy/ti/phy-tusb1210.c +1 -0
@@ -14,6 +14,7 @@#include <linux/gpio/consumer.h> #include <linux/phy/ulpi_phy.h> #include <linux/power_supply.h> +#include <linux/property.h> #include <linux/workqueue.h> #define TUSB1211_POWER_CONTROL 0x3d
drivers/phy/ti/phy-twl4030-usb.c +1 -0
@@ -14,6 +14,7 @@#include <linux/module.h> #include <linux/init.h> #include <linux/interrupt.h> +#include <linux/of.h> #include <linux/platform_device.h> #include <linux/workqueue.h> #include <linux/io.h>
Signature · 1 line
2.40.1
Quoted 10 lines · Rob Herring
The DT
of_device.handof_platform.hdate back to the separateof_platform_bus_typebefore it as merged into the regular platform bus. As part of that merge prepping Arm DT support 13 years ago, they "temporarily" include each other. They also includeplatform_device.handof.h. As a result, there's a pretty much random mix of those include files used throughout the tree. In order to detangle these headers and replace the implicit includes with struct declarations, users need to explicitly include the correct includes.
Quoted 3 lines
Signed-off-by Rob Herring <[email protected]>--- drivers/phy/ralink/phy-mt7621-pci.c | 3 +--
Thanks,
Sergio Paracuellos
Am Freitag, 14. Juli 2023, 19:48:35 CEST schrieb Rob Herring:
Quoted 9 lines
The DT
of_device.handof_platform.hdate back to the separateof_platform_bus_typebefore it as merged into the regular platform bus. As part of that merge prepping Arm DT support 13 years ago, they "temporarily" include each other. They also includeplatform_device.handof.h. As a result, there's a pretty much random mix of those include files used throughout the tree. In order to detangle these headers and replace the implicit includes with struct declarations, users need to explicitly include the correct includes.
Quoted 8 lines
Signed-off-by Rob Herring <[email protected]>---
drivers/phy/rockchip/phy-rockchip-dphy-rx0.c | 1 - drivers/phy/rockchip/phy-rockchip-inno-dsidphy.c | 2 +- drivers/phy/rockchip/phy-rockchip-inno-hdmi.c | 1 - drivers/phy/rockchip/phy-rockchip-naneng-combphy.c | 3 ++- drivers/phy/rockchip/phy-rockchip-snps-pcie3.c | 3 ++-
Quoted 9 lines · Rob Herring
The DT
of_device.handof_platform.hdate back to the separateof_platform_bus_typebefore it as merged into the regular platform bus. As part of that merge prepping Arm DT support 13 years ago, they "temporarily" include each other. They also includeplatform_device.handof.h. As a result, there's a pretty much random mix of those include files used throughout the tree. In order to detangle these headers and replace the implicit includes with struct declarations, users need to explicitly include the correct includes.
Quoted 3 lines
Signed-off-by Rob Herring <[email protected]>--- drivers/phy/phy-can-transceiver.c | 1 +
regards,
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung Nürnberg | Phone: +49-5121-206917-129 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
Quoted 10 lines · Rob Herring
The DT
of_device.handof_platform.hdate back to the separateof_platform_bus_typebefore it as merged into the regular platform bus. As part of that merge prepping Arm DT support 13 years ago, they "temporarily" include each other. They also includeplatform_device.handof.h. As a result, there's a pretty much random mix of those include files used throughout the tree. In order to detangle these headers and replace the implicit includes with struct declarations, users need to explicitly include the correct includes.[...]
Applied, thanks!
[1/1] phy: Explicitly include correct DT includes
commit: 7559e7572c03e433efec7734af6a674fdd83dd68
Best regards,
Signature · 1 line
~Vinod