Skip to content

Commit f05e2f6

Browse files
Amit Kumar Mahapatrabroonie
authored andcommitted
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 303feb3 ("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>
1 parent 4ae0884 commit f05e2f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/pci/hda/cs35l56_hda_spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static int cs35l56_hda_spi_probe(struct spi_device *spi)
2929
return ret;
3030
}
3131

32-
ret = cs35l56_hda_common_probe(cs35l56, spi->chip_select);
32+
ret = cs35l56_hda_common_probe(cs35l56, spi_get_chipselect(spi, 0));
3333
if (ret)
3434
return ret;
3535
ret = cs35l56_irq_request(&cs35l56->base, spi->irq);

0 commit comments

Comments
 (0)