This is going to be used outside of sdhci.c, so move it into the header. Signed-off-by: Ahmad Fatoum <a.fat...@pengutronix.de> --- drivers/mci/sdhci.c | 1 - drivers/mci/sdhci.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mci/sdhci.c b/drivers/mci/sdhci.c index b86b3f3d8d1c..3051354a3076 100644 --- a/drivers/mci/sdhci.c +++ b/drivers/mci/sdhci.c @@ -10,7 +10,6 @@ #include "sdhci.h" #define MAX_TUNING_LOOP 40 -#define SDHCI_MAKE_BLKSZ(dma, blksz) (((dma & 0x7) << 12) | (blksz & 0xFFF)) enum sdhci_reset_reason { SDHCI_RESET_FOR_INIT, diff --git a/drivers/mci/sdhci.h b/drivers/mci/sdhci.h index 31edebab1262..e0436425fbda 100644 --- a/drivers/mci/sdhci.h +++ b/drivers/mci/sdhci.h @@ -25,6 +25,7 @@ #define SDHCI_DEFAULT_BOUNDARY_ARG SDHCI_DMA_BOUNDARY_512K #define SDHCI_TRANSFER_BLOCK_SIZE(x) ((x) & 0xfff) #define SDHCI_BLOCK_COUNT 0x06 +#define SDHCI_MAKE_BLKSZ(dma, blksz) (((dma & 0x7) << 12) | (blksz & 0xFFF)) #define SDHCI_ARGUMENT 0x08 #define SDHCI_TRANSFER_MODE__COMMAND 0x0c #define SDHCI_TRANSFER_MODE 0x0c -- 2.39.5