]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spi-cadence-quadspi: Populate get_name() interface
authorVignesh Raghavendra <vigneshr@ti.com>
Tue, 25 Aug 2020 17:25:06 +0000 (22:55 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 25 Aug 2020 20:41:50 +0000 (21:41 +0100)
commitf1290f6665e4b6be2d5cbdfccceb70a8410703d0
tree63042246367aea7e98a7e4c873664de333cf09f7
parenta494f82af8e3e0e9ae25eeb62bcc4e3bcb6c22c6
spi: spi-cadence-quadspi: Populate get_name() interface

Implement get_name() interface of spi_controller_mem_ops so as to avoid
changing of mtd->name due to driver being moved over to spi-mem
framework from SPI NOR. This avoids breaking of MTD cmdline args being
passed by bootloaders which maybe using old driver name.

Fixes: 3218ee4e61d51 ("spi: Move cadence-quadspi driver to drivers/spi/")
Reported-by: Jan Kiszka <jan.kiszka@siemens.com>
Suggested-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Link: https://lore.kernel.org/r/20200825172506.14375-1-vigneshr@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-cadence-quadspi.c