include/spl_gpio.h: Audit include list
authorTom Rini <trini@konsulko.com>
Sat, 28 Jun 2025 22:43:51 +0000 (16:43 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 8 Jul 2025 19:11:12 +0000 (13:11 -0600)
This file does not need <asm/gpio.h> so remove it. This file does
however need <linux/types.h> so add that in. This also shows that
arch/arm/mach-rockchip/rk3399/rk3399.c and board/lg/star/star.c were
indirectly getting <asm/gpio.h> from here, so add <asm/gpio.h> to them.

Signed-off-by: Tom Rini <trini@konsulko.com>
arch/arm/mach-rockchip/rk3399/rk3399.c
board/lg/star/star.c
include/spl_gpio.h

index 9959707..43d1517 100644 (file)
@@ -16,6 +16,7 @@
 #include <asm/arch-rockchip/gpio.h>
 #include <asm/arch-rockchip/grf_rk3399.h>
 #include <asm/arch-rockchip/hardware.h>
+#include <asm/gpio.h>
 #include <linux/bitops.h>
 #include <linux/printk.h>
 #include <power/regulator.h>
index dc59375..0b4a433 100644 (file)
@@ -9,6 +9,7 @@
 #include <fdt_support.h>
 #include <log.h>
 #include <spl_gpio.h>
+#include <asm/gpio.h>
 
 static int star_fix_panel(void *fdt)
 {
index b33261a..a8aed4d 100644 (file)
@@ -9,7 +9,7 @@
 #ifndef __SPL_GPIO_H
 #define __SPL_GPIO_H
 
-#include <asm/gpio.h>
+#include <linux/types.h>
 
 /*
  * The functions listed here should be implemented in the SoC GPIO driver.