diff options
author | Rob Herring <robh@kernel.org> | 2023-07-14 11:49:28 -0600 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-07-14 20:52:54 +0100 |
commit | 045a44d4c9b32578aacf0811063e5bb741c7c32c (patch) | |
tree | 8507566fbf8d4fe3aa93ab8772c6a6afe2f3e991 /drivers/regulator/mp5416.c | |
parent | 497897cb200d03b89524e6b4dfb71c77af324766 (diff) | |
download | lwn-045a44d4c9b32578aacf0811063e5bb741c7c32c.tar.gz lwn-045a44d4c9b32578aacf0811063e5bb741c7c32c.zip |
regulator: 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.
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230714174930.4063320-1-robh@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/mp5416.c')
-rw-r--r-- | drivers/regulator/mp5416.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/mp5416.c b/drivers/regulator/mp5416.c index 3886b252fbe7..d068ac93d373 100644 --- a/drivers/regulator/mp5416.c +++ b/drivers/regulator/mp5416.c @@ -10,7 +10,7 @@ #include <linux/i2c.h> #include <linux/init.h> #include <linux/module.h> -#include <linux/of_device.h> +#include <linux/of.h> #include <linux/platform_device.h> #include <linux/regmap.h> #include <linux/regulator/driver.h> |