mmc: sdhci: put the aligned buffer pointer to struct sdhci_host

Using the global variable does not look nice.

Add a new field sthci::align_buffer to point to the bounce buffer.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
This commit is contained in:
Masahiro Yamada 2020-02-14 16:40:21 +09:00 committed by Peng Fan
parent 057516308a
commit c8cc18b7a7
2 changed files with 14 additions and 14 deletions

View file

@ -321,6 +321,7 @@ struct sdhci_host {
uint voltages;
struct mmc_config cfg;
void *align_buffer;
dma_addr_t start_addr;
int flags;
#define USE_SDMA (0x1 << 0)