]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
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 99597076d2cedbb9f928029a8f0c9f92736935b0..43d151708e478b81f3d3447059ec983fa3b48c2a 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 dc593754101666777ca372b812a127c44cf81231..0b4a433a5df65b9d744be4536c0ebaaa1884cc4c 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 b33261a6485ad9813cb4533d9208a509e4cdc2d5..a8aed4d77b96f8388c6783923d0f8f573e4e736d 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.