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

drivers: net: xgene: Don't use "proxy" headers

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

In this case replace *gpio.h, which are subject to remove by the GPIOLIB
subsystem, with the respective headers that are being used by the driver.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20250224120037.3801609-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Andy Shevchenko and committed by
Jakub Kicinski
ad530283 8fb2d122

+8 -2
+8 -2
drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c
··· 6 6 * Keyur Chudgar <kchudgar@apm.com> 7 7 */ 8 8 9 - #include <linux/of_gpio.h> 10 - #include <linux/gpio.h> 9 + #include <linux/acpi.h> 10 + #include <linux/clk.h> 11 + #include <linux/err.h> 12 + #include <linux/gpio/consumer.h> 13 + #include <linux/io.h> 14 + #include <linux/types.h> 15 + #include <linux/workqueue.h> 16 + 11 17 #include "xgene_enet_main.h" 12 18 #include "xgene_enet_hw.h" 13 19 #include "xgene_enet_xgmac.h"