Skip to contentSkip to conversation

cros_ec_sandbox.c: Drop spi.h include

PATCH In review Tom Rini 2 participants 3 messages Apr 17, 2025 – Apr 28, 2025

Subsystems (2)
lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 cros_ec_sandbox.c: Drop spi.h include

As this driver needs to use the special sandbox <asm/malloc.h> header rather than normal malloc, it must be careful of the includes it brings in. It does not need <spi.h> for anything, so drop it.

---
Cc: Simon Glass <[email protected]>

---
 drivers/misc/cros_ec_sandbox.c | 1 -
 1 file changed, 1 deletion(-)
drivers/misc/cros_ec_sandbox.c +0 -1
index 1cad51d474de..3ac690a37336 100644
@@ -15,7 +15,6 @@
 #include <log.h>
 #include <os.h>
 #include <u-boot/sha256.h>
-#include <spi.h>
 #include <time.h>
 #include <asm/malloc.h>
 #include <asm/state.h>
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Tom Rini

As this driver needs to use the special sandbox <asm/malloc.h> header rather than normal malloc, it must be careful of the includes it brings in. It does not need <spi.h> for anything, so drop it.

Quoted 7 lines

---
Cc: Simon Glass <[email protected]>

---
 drivers/misc/cros_ec_sandbox.c | 1 -
 1 file changed, 1 deletion(-)
Quoted 15 lines
drivers/misc/cros_ec_sandbox.c +0 -2
index 1cad51d474de..3ac690a37336 100644
@@ -15,7 +15,6 @@
 #include <log.h>
 #include <os.h>
 #include <u-boot/sha256.h>
-#include <spi.h>
 #include <time.h>
 #include <asm/malloc.h>
 #include <asm/state.h>
--

2.43.0

author
#2 lore raw
In reply to Tom Rini
Quoted 5 lines · Tom Rini

As this driver needs to use the special sandbox <asm/malloc.h> header rather than normal malloc, it must be careful of the includes it brings in. It does not need <spi.h> for anything, so drop it.

Applied to u-boot/master, thanks!

[1/1] cros_ec_sandbox.c: Drop spi.h include

      commit: 7bf752238327deecda12190154864128d55f78bd
Signature · 1 line
Tom