projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38dbfb5
)
spi: mxs: Use list_for_each_entry to iterate over transfer list
author
Axel Lin
<axel.lin@ingics.com>
Wed, 5 Feb 2014 09:47:59 +0000
(17:47 +0800)
committer
Mark Brown
<broonie@linaro.org>
Fri, 7 Feb 2014 12:20:37 +0000
(12:20 +0000)
We don't modify the list entry while iterating the transfer list.
So use list_for_each_entry instead of list_for_each_entry_safe.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-mxs.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/spi/spi-mxs.c
b/drivers/spi/spi-mxs.c
index 79e5aa2250c89d48541d8d9eb263410c2aa66ac6..d3803198e1665578eee81e7e536ec89f5d687722 100644
(file)
--- a/
drivers/spi/spi-mxs.c
+++ b/
drivers/spi/spi-mxs.c
@@
-371,7
+371,7
@@
static int mxs_spi_transfer_one(struct spi_master *master,
{
struct mxs_spi *spi = spi_master_get_devdata(master);
struct mxs_ssp *ssp = &spi->ssp;
- struct spi_transfer *t
, *tmp_t
;
+ struct spi_transfer *t;
unsigned int flag;
int status = 0;
@@
-381,7
+381,7
@@
static int mxs_spi_transfer_one(struct spi_master *master,
writel(mxs_spi_cs_to_reg(m->spi->chip_select),
ssp->base + HW_SSP_CTRL0 + STMP_OFFSET_REG_SET);
- list_for_each_entry
_safe(t, tmp_
t, &m->transfers, transfer_list) {
+ list_for_each_entry
(
t, &m->transfers, transfer_list) {
status = mxs_spi_setup_transfer(m->spi, t);
if (status)