Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

device property: Don't use "proxy" headers

Update header inclusions to follow IWYU (Include What You Use)
principle.

Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: "Rafael J. Wysocki" <rafael@kernel.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240301180138.271590-5-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Andy Shevchenko and committed by
Greg Kroah-Hartman
4dc3d612 420b104d

+21 -8
+6 -5
drivers/base/property.c
··· 7 7 * Mika Westerberg <mika.westerberg@linux.intel.com> 8 8 */ 9 9 10 - #include <linux/acpi.h> 10 + #include <linux/device.h> 11 + #include <linux/err.h> 11 12 #include <linux/export.h> 12 - #include <linux/kernel.h> 13 + #include <linux/kconfig.h> 13 14 #include <linux/of.h> 14 - #include <linux/of_address.h> 15 - #include <linux/of_graph.h> 16 - #include <linux/of_irq.h> 17 15 #include <linux/property.h> 18 16 #include <linux/phy.h> 17 + #include <linux/slab.h> 18 + #include <linux/string.h> 19 + #include <linux/types.h> 19 20 20 21 struct fwnode_handle *__dev_fwnode(struct device *dev) 21 22 {
+12 -1
drivers/base/swnode.c
··· 6 6 * Author: Heikki Krogerus <heikki.krogerus@linux.intel.com> 7 7 */ 8 8 9 + #include <linux/container_of.h> 9 10 #include <linux/device.h> 10 - #include <linux/kernel.h> 11 + #include <linux/err.h> 12 + #include <linux/export.h> 13 + #include <linux/idr.h> 14 + #include <linux/init.h> 15 + #include <linux/kobject.h> 16 + #include <linux/kstrtox.h> 17 + #include <linux/list.h> 11 18 #include <linux/property.h> 12 19 #include <linux/slab.h> 20 + #include <linux/spinlock.h> 21 + #include <linux/string.h> 22 + #include <linux/sysfs.h> 23 + #include <linux/types.h> 13 24 14 25 #include "base.h" 15 26
+2 -2
include/linux/fwnode.h
··· 9 9 #ifndef _LINUX_FWNODE_H_ 10 10 #define _LINUX_FWNODE_H_ 11 11 12 - #include <linux/types.h> 13 - #include <linux/list.h> 14 12 #include <linux/bits.h> 15 13 #include <linux/err.h> 14 + #include <linux/list.h> 15 + #include <linux/types.h> 16 16 17 17 enum dev_dma_attr { 18 18 DEV_DMA_NOT_SUPPORTED,
+1
include/linux/property.h
··· 11 11 #define _LINUX_PROPERTY_H_ 12 12 13 13 #include <linux/args.h> 14 + #include <linux/array_size.h> 14 15 #include <linux/bits.h> 15 16 #include <linux/fwnode.h> 16 17 #include <linux/stddef.h>