Skip to content

Commit 574ca75

Browse files
robherringalexandrebelloni
authored andcommitted
i3c: 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: Jeremy Kerr <jk@codeconstruct.com.au> Link: https://lore.kernel.org/r/20230714174623.4057784-1-robh@kernel.org Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent 06c2afb commit 574ca75

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

drivers/i3c/master/ast2600-i3c-master.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include <linux/mfd/syscon.h>
99
#include <linux/module.h>
1010
#include <linux/of.h>
11-
#include <linux/of_device.h>
1211
#include <linux/platform_device.h>
1312
#include <linux/regmap.h>
1413

drivers/i3c/master/i3c-master-cdns.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#include <linux/slab.h>
2323
#include <linux/spinlock.h>
2424
#include <linux/workqueue.h>
25-
#include <linux/of_device.h>
2625

2726
#define DEV_ID 0x0
2827
#define DEV_ID_I3C_MASTER 0x5034

0 commit comments

Comments
 (0)