aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-07-11 14:25:16 -0600
committerRob Herring <robh@kernel.org>2023-07-14 11:00:34 -0600
commit7beaa9a181711c2419017fa2a75c70fef24991f5 (patch)
treecb5963593e2d684b5fcf75c5e6880ef86ad306e7
parenta22144c68385b38917ba8a649aac1b37272b16cf (diff)
downloadlinux-dt/header-cleanups.tar.gz
WIP: Remove of.h include from headersdt/header-cleanups
Signed-off-by: Rob Herring <robh@kernel.org>
-rw-r--r--include/linux/cpu_cooling.h1
-rw-r--r--include/linux/fsl/bestcomm/bestcomm_priv.h1
-rw-r--r--include/linux/mailbox_client.h4
-rw-r--r--include/linux/mailbox_controller.h2
-rw-r--r--include/linux/phy/phy.h5
-rw-r--r--include/linux/pwm.h4
-rw-r--r--include/net/dsa.h2
-rw-r--r--include/soc/bcm2835/raspberrypi-firmware.h3
8 files changed, 12 insertions, 10 deletions
diff --git a/include/linux/cpu_cooling.h b/include/linux/cpu_cooling.h
index a3bdc8a98f2c41..829b18bb81eba6 100644
--- a/include/linux/cpu_cooling.h
+++ b/include/linux/cpu_cooling.h
@@ -13,7 +13,6 @@
#ifndef __CPU_COOLING_H__
#define __CPU_COOLING_H__
-#include <linux/of.h>
#include <linux/thermal.h>
#include <linux/cpumask.h>
diff --git a/include/linux/fsl/bestcomm/bestcomm_priv.h b/include/linux/fsl/bestcomm/bestcomm_priv.h
index 3b52f3ffbdf869..ae4fda7345eedf 100644
--- a/include/linux/fsl/bestcomm/bestcomm_priv.h
+++ b/include/linux/fsl/bestcomm/bestcomm_priv.h
@@ -20,7 +20,6 @@
#define __BESTCOMM_PRIV_H__
#include <linux/spinlock.h>
-#include <linux/of.h>
#include <asm/io.h>
#include <asm/mpc52xx.h>
diff --git a/include/linux/mailbox_client.h b/include/linux/mailbox_client.h
index 734694912ef749..bfe772c91edc49 100644
--- a/include/linux/mailbox_client.h
+++ b/include/linux/mailbox_client.h
@@ -7,9 +7,9 @@
#ifndef __MAILBOX_CLIENT_H
#define __MAILBOX_CLIENT_H
-#include <linux/of.h>
-#include <linux/device.h>
+#include <linux/types.h>
+struct device;
struct mbox_chan;
/**
diff --git a/include/linux/mailbox_controller.h b/include/linux/mailbox_controller.h
index 6fee33cb52f585..df901771414e25 100644
--- a/include/linux/mailbox_controller.h
+++ b/include/linux/mailbox_controller.h
@@ -3,13 +3,13 @@
#ifndef __MAILBOX_CONTROLLER_H
#define __MAILBOX_CONTROLLER_H
-#include <linux/of.h>
#include <linux/types.h>
#include <linux/hrtimer.h>
#include <linux/device.h>
#include <linux/completion.h>
struct mbox_chan;
+struct of_phandle_args;
/**
* struct mbox_chan_ops - methods to control mailbox channels
diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h
index f6d607ef0e8014..27d57b4de20dbe 100644
--- a/include/linux/phy/phy.h
+++ b/include/linux/phy/phy.h
@@ -11,8 +11,6 @@
#define __DRIVERS_PHY_H
#include <linux/err.h>
-#include <linux/of.h>
-#include <linux/device.h>
#include <linux/pm_runtime.h>
#include <linux/regulator/consumer.h>
@@ -20,6 +18,9 @@
#include <linux/phy/phy-lvds.h>
#include <linux/phy/phy-mipi-dphy.h>
+struct device;
+struct device_node;
+struct of_phandle_args;
struct phy;
enum phy_mode {
diff --git a/include/linux/pwm.h b/include/linux/pwm.h
index 04ae1d9073a74d..5a59a7d53be8b8 100644
--- a/include/linux/pwm.h
+++ b/include/linux/pwm.h
@@ -4,8 +4,10 @@
#include <linux/err.h>
#include <linux/mutex.h>
-#include <linux/of.h>
+struct device;
+struct fwnode_handle;
+struct of_phandle_args;
struct pwm_chip;
/**
diff --git a/include/net/dsa.h b/include/net/dsa.h
index d309ee7ed04bbc..551fc11c3584d6 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -13,7 +13,6 @@
#include <linux/notifier.h>
#include <linux/timer.h>
#include <linux/workqueue.h>
-#include <linux/of.h>
#include <linux/ethtool.h>
#include <linux/net_tstamp.h>
#include <linux/phy.h>
@@ -22,6 +21,7 @@
#include <net/devlink.h>
#include <net/switchdev.h>
+struct device_node;
struct dsa_8021q_context;
struct tc_action;
struct phy_device;
diff --git a/include/soc/bcm2835/raspberrypi-firmware.h b/include/soc/bcm2835/raspberrypi-firmware.h
index 73cac8d0287e89..3a1d16c3978807 100644
--- a/include/soc/bcm2835/raspberrypi-firmware.h
+++ b/include/soc/bcm2835/raspberrypi-firmware.h
@@ -7,8 +7,9 @@
#define __SOC_RASPBERRY_FIRMWARE_H__
#include <linux/types.h>
-#include <linux/of_device.h>
+struct device;
+struct device_node;
struct rpi_firmware;
enum rpi_firmware_property_status {