]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: dw_mmc: Move struct idmac to dw_mmc.c
authorSam Protsenko <semen.protsenko@linaro.org>
Thu, 8 Aug 2024 03:14:08 +0000 (22:14 -0500)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 19 Aug 2024 07:09:06 +0000 (16:09 +0900)
struct idmac is only used in dw_mmc.c, so move it there from dwmmc.h to
avoid cluttering the interface in the header.

No functional change.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/mmc/dw_mmc.c
include/dwmmc.h

index f4ecd7422cef6128e852eb1c1ed061a402ab4c3e..45665e517068cb7d7c3735a9aa35582a8a4c4e89 100644 (file)
 
 #define PAGE_SIZE 4096
 
+struct dwmci_idmac {
+       u32 flags;
+       u32 cnt;
+       u32 addr;
+       u32 next_addr;
+} __aligned(ARCH_DMA_MINALIGN);
+
 static int dwmci_wait_reset(struct dwmci_host *host, u32 value)
 {
        unsigned long timeout = 1000;
index 39024fb38aaac37ef6fc6addff982fc0224df62c..7e4acf096dce338f8e6cbd67b91db8dc628be1ca 100644 (file)
@@ -198,13 +198,6 @@ struct dwmci_host {
        bool fifo_mode;
 };
 
-struct dwmci_idmac {
-       u32 flags;
-       u32 cnt;
-       u32 addr;
-       u32 next_addr;
-} __aligned(ARCH_DMA_MINALIGN);
-
 static inline void dwmci_writel(struct dwmci_host *host, int reg, u32 val)
 {
        writel(val, host->ioaddr + reg);