[U-Boot] [PATCH v7 13/34] sf: Re-factorize spi_flash_probe_tail code

Simon Glass
2015-11-26T17:50:35Z

Hi Jagan,

On 26 November 2015 at 04:03, Jagan Teki <jteki@openedev.com> wrote:
> spi_flash_probe_tail code looks not in proper shape
> to add more functionalities. hence refactorized
> so-that it's more readable and hence we may extend
> more functionalies to it.
>
> Cc: Bin Meng <bmeng.cn@gmail.com>
> Cc: Troy Kisky <troy.kisky@boundarydevices.com>
> Signed-off-by: Jagan Teki <jteki@openedev.com>
> ---
> drivers/mtd/spi/sf_internal.h | 3 +-
> drivers/mtd/spi/sf_ops.c | 7 ++--
> drivers/mtd/spi/sf_probe.c | 74 ++++++++++++++++++-------------------------
> 3 files changed, 34 insertions(+), 50 deletions(-)

This relies on the early patch which I believe is not a good plan.
From what I can see the SPI MTD code does not support driver model, so
that should be sorted out first.

- Simon