sf: Get spi locally from spi_flash
authorJagan Teki <jteki@openedev.com>
Sat, 12 Dec 2015 06:21:57 +0000 (11:51 +0530)
committerJagan Teki <jteki@openedev.com>
Wed, 13 Jan 2016 13:17:25 +0000 (18:47 +0530)
commite228d6deb1540b5b11e0df6c28a1a471da44e03a
treea21c0763aed23e1692bac8afe2997ae35fd348d7
parent077678eb0c226e52a1f90edabd3369ab26065b32
sf: Get spi locally from spi_flash

For better code readabilty, get the spi pointer from
spi_flash{} locally and use it instead of direct
dereferring spi pinter as flash->spi->*

Tested-by: Jagan Teki <jteki@openedev.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Jagan Teki <jteki@openedev.com>
drivers/mtd/spi/spi_flash.c