sf: spi_flash_validate_params => spi_flash_scan
authorJagan Teki <jteki@openedev.com>
Tue, 29 Sep 2015 11:58:20 +0000 (17:28 +0530)
committerJagan Teki <jteki@openedev.com>
Fri, 11 Dec 2015 16:42:23 +0000 (22:12 +0530)
commit3a1adb621b985ebaf2c72ff179190b305577e1de
treead9258e266c626b9fedfcbab25c337733141ece4
parent8e4920e53e1a45658743d79d6fa29a1b44448622
sf: spi_flash_validate_params => spi_flash_scan

Rename spi_flash_validate_params to spi_flash_scan
as this code not only deals with params setup but
also configure all spi_flash attributes.

And also moved all flash related code into
spi_flash_scan for future functionality addition.

Tested-by: Jagan Teki <jteki@openedev.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Jagan Teki <jteki@openedev.com>
drivers/mtd/spi/sf_probe.c