[PATCH] spi: use sg_next for walking through the allocated scatterlist table

2016-11-22 Thread Juan Gutierrez
. The sg table can be properly walked by sg_next instead of using an array. Signed-off-by: Juan Gutierrez --- drivers/spi/spi.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 838783c..6435548 100644 --- a/drivers/spi/spi.c

[PATCH] spi: use sg_next for walking through the allocated scatterlist table

2016-11-21 Thread Juan Gutierrez
. The sg table can be properly walked by sg_next instead of using an array. Signed-off-by: Juan Gutierrez --- drivers/spi/spi.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 838783c..6435548 100644 --- a/drivers/spi/spi.c