diff options
| author | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
| commit | 1ac731c529cd4d6adbce134754b51ff7d822b145 (patch) | |
| tree | 143ab3f35ca5f3b69f583c84e6964b17139c2ec1 /drivers/spi/spi-synquacer.c | |
| parent | 07b4c950f27bef0362dc6ad7ee713aab61d58149 (diff) | |
| parent | 54116d442e001e1b6bd482122043b1870998a1f3 (diff) | |
Merge branch 'next' into for-linus
Prepare input updates for 6.6 merge window.
Diffstat (limited to 'drivers/spi/spi-synquacer.c')
| -rw-r--r-- | drivers/spi/spi-synquacer.c | 12 | 
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/spi/spi-synquacer.c b/drivers/spi/spi-synquacer.c index dc188f9202c9..aeaf7db022f0 100644 --- a/drivers/spi/spi-synquacer.c +++ b/drivers/spi/spi-synquacer.c @@ -250,7 +250,7 @@ static int synquacer_spi_config(struct spi_master *master,  	}  	mode = spi->mode; -	cs = spi->chip_select; +	cs = spi_get_chipselect(spi, 0);  	speed = xfer->speed_hz;  	bpw = xfer->bits_per_word; @@ -344,7 +344,7 @@ static int synquacer_spi_config(struct spi_master *master,  	sspi->bpw = bpw;  	sspi->mode = mode;  	sspi->speed = speed; -	sspi->cs = spi->chip_select; +	sspi->cs = spi_get_chipselect(spi, 0);  	sspi->bus_width = bus_width;  	return 0; @@ -488,7 +488,7 @@ static void synquacer_spi_set_cs(struct spi_device *spi, bool enable)  	val = readl(sspi->regs + SYNQUACER_HSSPI_REG_DMSTART);  	val &= ~(SYNQUACER_HSSPI_DMPSEL_CS_MASK <<  		 SYNQUACER_HSSPI_DMPSEL_CS_SHIFT); -	val |= spi->chip_select << SYNQUACER_HSSPI_DMPSEL_CS_SHIFT; +	val |= spi_get_chipselect(spi, 0) << SYNQUACER_HSSPI_DMPSEL_CS_SHIFT;  	if (!enable)  		val |= SYNQUACER_HSSPI_DMSTOP_STOP; @@ -735,7 +735,7 @@ put_spi:  	return ret;  } -static int synquacer_spi_remove(struct platform_device *pdev) +static void synquacer_spi_remove(struct platform_device *pdev)  {  	struct spi_master *master = platform_get_drvdata(pdev);  	struct synquacer_spi *sspi = spi_master_get_devdata(master); @@ -743,8 +743,6 @@ static int synquacer_spi_remove(struct platform_device *pdev)  	pm_runtime_disable(sspi->dev);  	clk_disable_unprepare(sspi->clk); - -	return 0;  }  static int __maybe_unused synquacer_spi_suspend(struct device *dev) @@ -820,7 +818,7 @@ static struct platform_driver synquacer_spi_driver = {  		.acpi_match_table = ACPI_PTR(synquacer_hsspi_acpi_ids),  	},  	.probe = synquacer_spi_probe, -	.remove = synquacer_spi_remove, +	.remove_new = synquacer_spi_remove,  };  module_platform_driver(synquacer_spi_driver);  |