nvmem: Explicitly include correct DT includes
authorRob Herring <robh@kernel.org>
Wed, 23 Aug 2023 13:27:35 +0000 (14:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Aug 2023 14:34:01 +0000 (16:34 +0200)
commit9bf75da0e2613d64c3d5e965d49fb80820d367cf
tree83ae183ccbde7185203b748b794d6aef402bd571
parent0861110bb421daa9b709a20d4fae6921390a9454
nvmem: 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>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20230823132744.350618-14-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 files changed:
drivers/nvmem/bcm-ocotp.c
drivers/nvmem/core.c
drivers/nvmem/imx-iim.c
drivers/nvmem/imx-ocotp-ele.c
drivers/nvmem/imx-ocotp-scu.c
drivers/nvmem/imx-ocotp.c
drivers/nvmem/lpc18xx_otp.c
drivers/nvmem/meson-mx-efuse.c
drivers/nvmem/qcom-spmi-sdam.c
drivers/nvmem/rave-sp-eeprom.c
drivers/nvmem/sc27xx-efuse.c
drivers/nvmem/snvs_lpgpr.c
drivers/nvmem/sprd-efuse.c
drivers/nvmem/sunplus-ocotp.c
drivers/nvmem/sunxi_sid.c
drivers/nvmem/u-boot-env.c