]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: spi: Export spi_flash_std_probe()
authorSimon Glass <sjg@chromium.org>
Sat, 7 Dec 2019 04:42:50 +0000 (21:42 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 15 Dec 2019 03:44:24 +0000 (11:44 +0800)
commit4806fcea1a4b0143fc57932bc5cbdffdf8afca4e
tree43ef300a6cbe7a112458589f0ba7ae587e1af261
parent3937df3d6c0b88745399434c58d80960f7bf31af
mtd: spi: Export spi_flash_std_probe()

With of-platdata we need to create drivers for particular chips, or at
least drivers that are separate from the standard code, since C structures
are created by dtoc which are private to that driver.

To avoid duplicating the probing code, export this probe function for use
by these drivers.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/mtd/spi/sf_probe.c
include/spi_flash.h