power: Explicitly include correct DT includes
authorRob Herring <robh@kernel.org>
Tue, 18 Jul 2023 14:30:43 +0000 (08:30 -0600)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 19 Jul 2023 20:47:03 +0000 (22:47 +0200)
commit2ce8284c31156c432df60d4497ec68cca04e128f
tree5d4adf5a8907b63430bf300bab8c228c1416d733
parent06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5
power: 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.

Acked-by: David Lechner <david@lechnology.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
31 files changed:
drivers/power/reset/as3722-poweroff.c
drivers/power/reset/brcm-kona-reset.c
drivers/power/reset/gpio-poweroff.c
drivers/power/reset/gpio-restart.c
drivers/power/reset/keystone-reset.c
drivers/power/reset/ocelot-reset.c
drivers/power/reset/odroid-go-ultra-poweroff.c
drivers/power/reset/oxnas-restart.c
drivers/power/reset/st-poweroff.c
drivers/power/reset/syscon-poweroff.c
drivers/power/reset/syscon-reboot.c
drivers/power/reset/xgene-reboot.c
drivers/power/supply/axp20x_ac_power.c
drivers/power/supply/axp20x_battery.c
drivers/power/supply/axp20x_usb_power.c
drivers/power/supply/cpcap-battery.c
drivers/power/supply/da9150-charger.c
drivers/power/supply/da9150-fg.c
drivers/power/supply/lego_ev3_battery.c
drivers/power/supply/ltc2941-battery-gauge.c
drivers/power/supply/ltc4162-l-charger.c
drivers/power/supply/max14656_charger_detector.c
drivers/power/supply/max17040_battery.c
drivers/power/supply/max8903_charger.c
drivers/power/supply/rn5t618_power.c
drivers/power/supply/rt5033_charger.c
drivers/power/supply/rt9455_charger.c
drivers/power/supply/sbs-battery.c
drivers/power/supply/tps65090-charger.c
drivers/power/supply/tps65217_charger.c
drivers/power/supply/twl4030_charger.c