diff options
author | Jarkko Nikula <jarkko.nikula@linux.intel.com> | 2018-02-01 16:17:29 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-02-12 13:04:16 +0100 |
commit | 721483e28889431426a15fe906f48aacd17f0999 (patch) | |
tree | 30788bc4452d4e8b020c96a5a40abde9a5038ab0 /drivers/spi/spi-dw-mid.c | |
parent | Linux 4.16-rc1 (diff) | |
download | linux-721483e28889431426a15fe906f48aacd17f0999.tar.xz linux-721483e28889431426a15fe906f48aacd17f0999.zip |
spi: dw: Convert to generalized SPI controller API
Convert to generalized SPI controller API introduced by the
commit 8caab75fd2c2 ("spi: Generalize SPI "master" to "controller"").
Inside driver variable name "master" is still used to indicate the driver
is master only.
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-dw-mid.c')
-rw-r--r-- | drivers/spi/spi-dw-mid.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/spi/spi-dw-mid.c b/drivers/spi/spi-dw-mid.c index 837cb8d0bac6..3db905f5f345 100644 --- a/drivers/spi/spi-dw-mid.c +++ b/drivers/spi/spi-dw-mid.c @@ -112,10 +112,10 @@ static irqreturn_t dma_transfer(struct dw_spi *dws) return IRQ_HANDLED; } -static bool mid_spi_can_dma(struct spi_master *master, struct spi_device *spi, - struct spi_transfer *xfer) +static bool mid_spi_can_dma(struct spi_controller *master, + struct spi_device *spi, struct spi_transfer *xfer) { - struct dw_spi *dws = spi_master_get_devdata(master); + struct dw_spi *dws = spi_controller_get_devdata(master); if (!dws->dma_inited) return false; |