[U-Boot] [PATCH v7 16/34] sf: Add MTD support to spi_flash

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

Hi Jagan,

On 26 November 2015 at 04:04, Jagan Teki <jteki@openedev.com> wrote:
> This patch adds mtd_info support to spi_flash layer, MTD has
> proven core for flash operations so adding MTD to spi_flash
> will extends more functionality.
>
> Reviewed-by: Heiko Schocher <hs@denx.de>
> Signed-off-by: Jagan Teki <jteki@openedev.com>
> ---
> drivers/mtd/spi/sf_ops.c | 40 +++++++++++++++++++++++-----------------
> drivers/mtd/spi/sf_probe.c | 28 ++++++++++++++++++++--------
> include/spi_flash.h | 4 ++++
> 3 files changed, 47 insertions(+), 25 deletions(-)

This uses its own methods instead of driver model - function pointers
should be part of operations in a uclass.

Regards,
Simon