]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi: cadence-qspi: Use priv instead of plat across the driver
authorAshok Reddy Soma <ashok.reddy.soma@xilinx.com>
Wed, 24 Aug 2022 11:38:47 +0000 (05:38 -0600)
committerMichal Simek <michal.simek@amd.com>
Tue, 13 Sep 2022 09:32:48 +0000 (11:32 +0200)
commitf7d4cab1b3059089e0bb16bc26849b2aad57fa17
treec0728bd3078b8d370222fe683693bca7c0b6a84d
parentd0003b5edf11b0fc2a050e2a0eaac39ba921d85e
spi: cadence-qspi: Use priv instead of plat across the driver

As per driver model we should enumerate plat structure only in
of_to_plat() and should be used only in probe(). Copy required
plat structure info into priv structure in probe() and use priv
structure across the driver. So replace plat with priv structure across
the driver.

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
Link: https://lore.kernel.org/r/20220824113847.7482-4-ashok.reddy.soma@xilinx.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/spi/cadence_ospi_versal.c
drivers/spi/cadence_qspi.c
drivers/spi/cadence_qspi.h
drivers/spi/cadence_qspi_apb.c