diff options
author | Rob Herring <robh@kernel.org> | 2023-07-14 19:46:16 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2023-08-14 17:47:21 +0200 |
commit | 59738ab26644ecb9bd05378a948c4a6e036e4916 (patch) | |
tree | 2d7fe6996b7d7683c49dfb75f714f72f9d0e6f96 /drivers/i2c/busses/i2c-cpm.c | |
parent | Merge remote-tracking branch 'andi/i2c/andi-for-next' into i2c/for-mergewindow (diff) | |
download | linux-59738ab26644ecb9bd05378a948c4a6e036e4916.tar.xz linux-59738ab26644ecb9bd05378a948c4a6e036e4916.zip |
I2C: 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>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-cpm.c')
-rw-r--r-- | drivers/i2c/busses/i2c-cpm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-cpm.c b/drivers/i2c/busses/i2c-cpm.c index 732daf6a932b..9a664abf734d 100644 --- a/drivers/i2c/busses/i2c-cpm.c +++ b/drivers/i2c/busses/i2c-cpm.c @@ -26,10 +26,10 @@ #include <linux/i2c.h> #include <linux/io.h> #include <linux/dma-mapping.h> +#include <linux/of.h> #include <linux/of_address.h> -#include <linux/of_device.h> #include <linux/of_irq.h> -#include <linux/of_platform.h> +#include <linux/platform_device.h> #include <sysdev/fsl_soc.h> #include <asm/cpm.h> |