diff options
author | 2023-11-25 14:51:29 +0530 | |
---|---|---|
committer | 2023-12-07 16:23:19 +0000 | |
commit | f05e2f61fe88092e0d341ea27644a84e3386358d (patch) | |
tree | 75b7467e0f5c0f9f51346934e96c30605acd50d3 /sound/pci/hda/cs35l56_hda_spi.c | |
parent | mfd: tps6594: Use spi_get_chipselect() API to access spi->chip_select (diff) | |
download | linux-f05e2f61fe88092e0d341ea27644a84e3386358d.tar.gz linux-f05e2f61fe88092e0d341ea27644a84e3386358d.tar.bz2 linux-f05e2f61fe88092e0d341ea27644a84e3386358d.zip |
ALSA: hda/cs35l56: Use set/get APIs to access spi->chip_select
In preparation for adding multiple CS support for a device, set/get
functions were introduces accessing spi->chip_select in
'commit 303feb3cc06a ("spi: Add APIs in spi core to set/get
spi->chip_select and spi->cs_gpiod")'.
Replace spi->chip_select with spi_get_chipselect() API.
Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@amd.com>
Link: https://lore.kernel.org/r/20231125092137.2948-3-amit.kumar-mahapatra@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/pci/hda/cs35l56_hda_spi.c')
-rw-r--r-- | sound/pci/hda/cs35l56_hda_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/cs35l56_hda_spi.c b/sound/pci/hda/cs35l56_hda_spi.c index 756aec342eab..1c5cb3b1e2c3 100644 --- a/sound/pci/hda/cs35l56_hda_spi.c +++ b/sound/pci/hda/cs35l56_hda_spi.c @@ -29,7 +29,7 @@ static int cs35l56_hda_spi_probe(struct spi_device *spi) return ret; } - ret = cs35l56_hda_common_probe(cs35l56, spi->chip_select); + ret = cs35l56_hda_common_probe(cs35l56, spi_get_chipselect(spi, 0)); if (ret) return ret; ret = cs35l56_irq_request(&cs35l56->base, spi->irq); |