mtd: spi: Call sst_write in _write ops
authorJagan Teki <jagan@amarulasolutions.com>
Wed, 13 May 2020 10:02:23 +0000 (15:32 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 1 Jun 2020 12:25:24 +0000 (17:55 +0530)
commit46e4cdff1ee2b07e590b1a91d761f98e26ff3667
treef4d70881d29eb75e54c452f37e438e316b2b4b95
parentf12f96cfaf53d47aa58eb640744542446aac44dd
mtd: spi: Call sst_write in _write ops

Currently spi-nor code is assigning _write ops for SST
and other flashes separately. 

Just call the sst_write from generic write ops and return
if SST flash found, this way it avoids the confusion of
multiple write ops assignment during the scan and makes
it more feasible for code readability.

No functionality changes.

Cc: Simon Glass <sjg@chromium.org>
Cc: Vignesh R <vigneshr@ti.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/mtd/spi/spi-nor-core.c