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

mmc: atmel-mci: use ATMEL_PDC_SCND_BUF_OFF instead of a literal value

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>

authored by

Ludovic Desroches and committed by
Chris Ball
1ebbe3d3 11d1488b

+4 -2
+2 -2
drivers/mmc/host/atmel-mci.c
··· 603 603 } 604 604 605 605 if (buf_nb == PDC_SECOND_BUF) { 606 - pointer_reg += 0x10; 607 - counter_reg += 0x10; 606 + pointer_reg += ATMEL_PDC_SCND_BUF_OFF; 607 + counter_reg += ATMEL_PDC_SCND_BUF_OFF; 608 608 } 609 609 610 610 atmci_writel(host, pointer_reg, sg_dma_address(host->sg));
+2
include/linux/atmel_pdc.h
··· 33 33 34 34 #define ATMEL_PDC_PTSR 0x124 /* Transfer Status Register */ 35 35 36 + #define ATMEL_PDC_SCND_BUF_OFF 0x10 /* Offset between first and second buffer registers */ 37 + 36 38 #endif