Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: dw: replace magic constant by DW_SPI_DR

The offset 0x60 is the offset of the data register defined as DW_SPI_DR in the
header file. Use it.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Andy Shevchenko and committed by
Mark Brown
d7ef54ca f4aaa1c8

+1 -1
+1 -1
drivers/spi/spi-dw.c
··· 483 483 dws->master = master; 484 484 dws->type = SSI_MOTO_SPI; 485 485 dws->dma_inited = 0; 486 - dws->dma_addr = (dma_addr_t)(dws->paddr + 0x60); 486 + dws->dma_addr = (dma_addr_t)(dws->paddr + DW_SPI_DR); 487 487 snprintf(dws->name, sizeof(dws->name), "dw_spi%d", dws->bus_num); 488 488 489 489 ret = request_irq(dws->irq, dw_spi_irq, IRQF_SHARED, dws->name, master);