From add76f91d5e6e18d5df52a9ad34906459f5f69e2 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Thu, 21 Mar 2019 09:55:49 +0100 Subject: src: Use #include when appropriate Also, extra-lines added or removed and local includes moved down. Change-Id: I5e739233f3742fd68d537f671642bb04886e3009 Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/c/coreboot/+/32009 Reviewed-by: Nico Huber Tested-by: build bot (Jenkins) --- src/commonlib/storage/sd.c | 2 +- src/commonlib/storage/sd_mmc.c | 4 ++-- src/commonlib/storage/sdhci_adma.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/commonlib') diff --git a/src/commonlib/storage/sd.c b/src/commonlib/storage/sd.c index 1389ffb409..2e1ae85f06 100644 --- a/src/commonlib/storage/sd.c +++ b/src/commonlib/storage/sd.c @@ -24,9 +24,9 @@ #include #include #include + #include "sd_mmc.h" #include "storage.h" -#include int sd_send_if_cond(struct storage_media *media) { diff --git a/src/commonlib/storage/sd_mmc.c b/src/commonlib/storage/sd_mmc.c index bda8d7470c..fd59bd0b6f 100644 --- a/src/commonlib/storage/sd_mmc.c +++ b/src/commonlib/storage/sd_mmc.c @@ -24,11 +24,11 @@ #include #include #include +#include + #include "mmc.h" #include "sd_mmc.h" #include "storage.h" -#include -#include uint64_t sd_mmc_extract_uint32_bits(const uint32_t *array, int start, int count) { diff --git a/src/commonlib/storage/sdhci_adma.c b/src/commonlib/storage/sdhci_adma.c index e95742b35b..1bae3fbff2 100644 --- a/src/commonlib/storage/sdhci_adma.c +++ b/src/commonlib/storage/sdhci_adma.c @@ -22,11 +22,11 @@ #include #include #include +#include + #include "sdhci.h" #include "sd_mmc.h" #include "storage.h" -#include -#include static void sdhci_alloc_adma_descs(struct sdhci_ctrlr *sdhci_ctrlr, u32 need_descriptors) -- cgit v1.2.3