mtd: spi-nor: intel-spi: Convert to SPI MEM
authorMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 9 Feb 2022 12:27:05 +0000 (15:27 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 14 Feb 2022 12:53:09 +0000 (12:53 +0000)
commite23e5a05d1fd9479586c40ffbcc056b3e34ef816
tree1a373f2fd153d832b22f88a9c279a588d17e85a2
parentcd149eff8d2201a63c074a6d9d03e52926aa535d
mtd: spi-nor: intel-spi: Convert to SPI MEM

The preferred way to implement SPI-NOR controller drivers is through SPI
subsubsystem utilizing the SPI MEM core functions. This converts the
Intel SPI flash controller driver over the SPI MEM by moving the driver
from SPI-NOR subsystem to SPI subsystem and in one go make it use the
SPI MEM functions. The driver name will be changed from intel-spi to
spi-intel to match the convention used in the SPI subsystem.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Mauro Lima <mauro.lima@eclypsium.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Acked-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Link: https://lore.kernel.org/r/20220209122706.42439-3-mika.westerberg@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
15 files changed:
drivers/mtd/spi-nor/controllers/Kconfig
drivers/mtd/spi-nor/controllers/Makefile
drivers/mtd/spi-nor/controllers/intel-spi-pci.c [deleted file]
drivers/mtd/spi-nor/controllers/intel-spi-platform.c [deleted file]
drivers/mtd/spi-nor/controllers/intel-spi.c [deleted file]
drivers/mtd/spi-nor/controllers/intel-spi.h [deleted file]
drivers/spi/Kconfig
drivers/spi/Makefile
drivers/spi/spi-intel-pci.c [new file with mode: 0644]
drivers/spi/spi-intel-platform.c [new file with mode: 0644]
drivers/spi/spi-intel.c [new file with mode: 0644]
drivers/spi/spi-intel.h [new file with mode: 0644]
include/linux/mfd/lpc_ich.h
include/linux/platform_data/x86/intel-spi.h [deleted file]
include/linux/platform_data/x86/spi-intel.h [new file with mode: 0644]