mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-18 02:46:06 +00:00
of: Drop unnecessary includes in headers
Drop unnecessary includes in DT headers. Some simply aren't needed and some can be replaced with forward declarations. Link: https://lore.kernel.org/r/20230329-dt-cpu-header-cleanups-v1-5-581e2605fe47@kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
This commit is contained in:
parent
b58fa269c5
commit
2e8fff668d
@ -16,13 +16,10 @@
|
|||||||
#include <linux/errno.h>
|
#include <linux/errno.h>
|
||||||
#include <linux/kobject.h>
|
#include <linux/kobject.h>
|
||||||
#include <linux/mod_devicetable.h>
|
#include <linux/mod_devicetable.h>
|
||||||
#include <linux/topology.h>
|
|
||||||
#include <linux/notifier.h>
|
|
||||||
#include <linux/property.h>
|
#include <linux/property.h>
|
||||||
#include <linux/list.h>
|
#include <linux/list.h>
|
||||||
|
|
||||||
#include <asm/byteorder.h>
|
#include <asm/byteorder.h>
|
||||||
#include <asm/errno.h>
|
|
||||||
|
|
||||||
typedef u32 phandle;
|
typedef u32 phandle;
|
||||||
typedef u32 ihandle;
|
typedef u32 ihandle;
|
||||||
@ -1521,6 +1518,8 @@ enum of_reconfig_change {
|
|||||||
OF_RECONFIG_CHANGE_REMOVE,
|
OF_RECONFIG_CHANGE_REMOVE,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct notifier_block;
|
||||||
|
|
||||||
#ifdef CONFIG_OF_DYNAMIC
|
#ifdef CONFIG_OF_DYNAMIC
|
||||||
extern int of_reconfig_notifier_register(struct notifier_block *);
|
extern int of_reconfig_notifier_register(struct notifier_block *);
|
||||||
extern int of_reconfig_notifier_unregister(struct notifier_block *);
|
extern int of_reconfig_notifier_unregister(struct notifier_block *);
|
||||||
|
@ -7,9 +7,10 @@
|
|||||||
#include <linux/of_platform.h> /* temporary until merge */
|
#include <linux/of_platform.h> /* temporary until merge */
|
||||||
|
|
||||||
#include <linux/of.h>
|
#include <linux/of.h>
|
||||||
#include <linux/mod_devicetable.h>
|
|
||||||
|
|
||||||
struct device;
|
struct device;
|
||||||
|
struct of_device_id;
|
||||||
|
struct kobj_uevent_env;
|
||||||
|
|
||||||
#ifdef CONFIG_OF
|
#ifdef CONFIG_OF
|
||||||
extern const struct of_device_id *of_match_device(
|
extern const struct of_device_id *of_match_device(
|
||||||
|
@ -6,12 +6,13 @@
|
|||||||
* <benh@kernel.crashing.org>
|
* <benh@kernel.crashing.org>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/device.h>
|
|
||||||
#include <linux/mod_devicetable.h>
|
#include <linux/mod_devicetable.h>
|
||||||
#include <linux/pm.h>
|
|
||||||
#include <linux/of_device.h>
|
#include <linux/of_device.h>
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
|
|
||||||
|
struct device;
|
||||||
|
struct of_device_id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* struct of_dev_auxdata - lookup table entry for device names & platform_data
|
* struct of_dev_auxdata - lookup table entry for device names & platform_data
|
||||||
* @compatible: compatible value of node to match against node
|
* @compatible: compatible value of node to match against node
|
||||||
|
Loading…
x
Reference in New Issue
Block a user