Re: [U-Boot] [PATCH 1/4] sf: Get spi locally from spi_flash

2015-12-13 Thread Bin Meng
Hi Jagan, On Mon, Dec 14, 2015 at 12:52 AM, Jagan Teki wrote: > For better code readabilty, get the spi pointer from > spi_flash{} locally and use it instead of direct > dereferring spi pinter as flash->spi->* > > Signed-off-by: Jagan Teki > --- > drivers/mtd/spi/spi_flash.c | 48 > +++

[U-Boot] [PATCH 1/4] sf: Get spi locally from spi_flash

2015-12-13 Thread Jagan Teki
For better code readabilty, get the spi pointer from spi_flash{} locally and use it instead of direct dereferring spi pinter as flash->spi->* Signed-off-by: Jagan Teki --- drivers/mtd/spi/spi_flash.c | 48 - 1 file changed, 26 insertions(+), 22 deletio