[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210803102517.20944-1-Mason.Zhang@mediatek.com>
Date: Tue, 3 Aug 2021 18:25:18 +0800
From: Mason Zhang <Mason.Zhang@...iatek.com>
To: Mark Brown <broonie@...nel.org>,
Matthias Brugger <matthias.bgg@...il.com>
CC: Laxman Dewangan <ldewangan@...dia.com>,
<linux-spi@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-mediatek@...ts.infradead.org>, <wsd_upstream@...iatek.com>,
Mason Zhang <Mason.Zhang@...iatek.com>
Subject: [PATCH v2 4/4] spi: tegra114: Fix set_cs_timing param
This patch fixed set_cs_timing param, because cs timing delay has
been moved to spi_device.
Signed-off-by: Mason Zhang <Mason.Zhang@...iatek.com>
---
drivers/spi/spi-tegra114.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/spi/spi-tegra114.c b/drivers/spi/spi-tegra114.c
index 5131141bbf0d..e9de1d958bbd 100644
--- a/drivers/spi/spi-tegra114.c
+++ b/drivers/spi/spi-tegra114.c
@@ -717,12 +717,12 @@ static void tegra_spi_deinit_dma_param(struct tegra_spi_data *tspi,
dma_release_channel(dma_chan);
}
-static int tegra_spi_set_hw_cs_timing(struct spi_device *spi,
- struct spi_delay *setup,
- struct spi_delay *hold,
- struct spi_delay *inactive)
+static int tegra_spi_set_hw_cs_timing(struct spi_device *spi)
{
struct tegra_spi_data *tspi = spi_master_get_devdata(spi->master);
+ struct spi_delay *setup = &spi->cs_setup;
+ struct spi_delay *hold = &spi->cs_hold;
+ struct spi_delay *inactive = &spi->cs_inactive;
u8 setup_dly, hold_dly, inactive_dly;
u32 setup_hold;
u32 spi_cs_timing;
--
2.18.0
Powered by blists - more mailing lists