projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75eaf49
)
mmc: mmc_spi: Convert to use for_each_sg()
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Fri, 30 Aug 2019 14:39:16 +0000
(17:39 +0300)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Wed, 11 Sep 2019 13:58:39 +0000
(15:58 +0200)
Use for_each_sg() macro instead of open coded variant.
No functional change intended.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mmc_spi.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/mmc_spi.c
b/drivers/mmc/host/mmc_spi.c
index
19544b1
..
66e354d
100644
(file)
--- a/
drivers/mmc/host/mmc_spi.c
+++ b/
drivers/mmc/host/mmc_spi.c
@@
-891,7
+891,7
@@
mmc_spi_data_do(struct mmc_spi_host *host, struct mmc_command *cmd,
/* Handle scatterlist segments one at a time, with synch for
* each 512-byte block
*/
- for
(sg = data->sg, n_sg = data->sg_len; n_sg; n_sg--, sg++
) {
+ for
_each_sg(data->sg, sg, data->sg_len, n_sg
) {
int status = 0;
dma_addr_t dma_addr = 0;
void *kmap_addr;