spi: atmel-quadspi: Fix the buswidth adjustment between spi-mem and controller
authorTudor Ambarus <tudor.ambarus@microchip.com>
Fri, 8 Apr 2022 08:40:26 +0000 (11:40 +0300)
committerEugen Hristev <eugen.hristev@microchip.com>
Tue, 26 Apr 2022 06:54:41 +0000 (09:54 +0300)
commit20ced4b22af212874e033a64567b82b469dcd612
treedea81b95d88c906fd0507607243cfdd8cf6ca0c7
parent66692917003cd77ec0271b5c197aded70d1ed14b
spi: atmel-quadspi: Fix the buswidth adjustment between spi-mem and controller

Use the spi_mem_default_supports_op() core helper in order to take into
account the buswidth specified by the user in device tree.

Fixes: 24c8ff4684 ("spi: Add Atmel QuadSPI driver")
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
drivers/spi/atmel-quadspi.c