[PATCH v2] power: Explicitly include correct DT includes

Simon Glass sjg at chromium.org
Tue Jul 18 18:08:01 PDT 2023


On Tue, 18 Jul 2023 at 08:31, Rob Herring <robh at kernel.org> wrote:
>
> 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 at lechnology.com>
> Signed-off-by: Rob Herring <robh at kernel.org>
> ---
> v2:
> - Fix double include of of.h
> ---
>  drivers/power/reset/as3722-poweroff.c            | 1 -
>  drivers/power/reset/brcm-kona-reset.c            | 4 ++--
>  drivers/power/reset/gpio-poweroff.c              | 3 ++-
>  drivers/power/reset/gpio-restart.c               | 2 +-
>  drivers/power/reset/keystone-reset.c             | 3 ++-
>  drivers/power/reset/ocelot-reset.c               | 4 ++--
>  drivers/power/reset/odroid-go-ultra-poweroff.c   | 3 ++-
>  drivers/power/reset/oxnas-restart.c              | 2 --
>  drivers/power/reset/st-poweroff.c                | 2 +-
>  drivers/power/reset/syscon-poweroff.c            | 3 +--
>  drivers/power/reset/syscon-reboot.c              | 3 +--
>  drivers/power/reset/xgene-reboot.c               | 2 +-
>  drivers/power/supply/axp20x_ac_power.c           | 1 -
>  drivers/power/supply/axp20x_battery.c            | 1 -
>  drivers/power/supply/axp20x_usb_power.c          | 1 -
>  drivers/power/supply/cpcap-battery.c             | 2 +-
>  drivers/power/supply/da9150-charger.c            | 2 --
>  drivers/power/supply/da9150-fg.c                 | 1 -
>  drivers/power/supply/lego_ev3_battery.c          | 2 +-
>  drivers/power/supply/ltc2941-battery-gauge.c     | 2 +-
>  drivers/power/supply/ltc4162-l-charger.c         | 2 +-
>  drivers/power/supply/max14656_charger_detector.c | 2 +-
>  drivers/power/supply/max17040_battery.c          | 2 +-
>  drivers/power/supply/max8903_charger.c           | 1 -
>  drivers/power/supply/rn5t618_power.c             | 1 -
>  drivers/power/supply/rt5033_charger.c            | 2 +-
>  drivers/power/supply/rt9455_charger.c            | 3 +--
>  drivers/power/supply/sbs-battery.c               | 2 +-
>  drivers/power/supply/tps65090-charger.c          | 2 +-
>  drivers/power/supply/tps65217_charger.c          | 1 -
>  drivers/power/supply/twl4030_charger.c           | 1 +
>  31 files changed, 26 insertions(+), 37 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>



More information about the linux-arm-kernel mailing list