Commit 4ae08845 authored by Amit Kumar Mahapatra's avatar Amit Kumar Mahapatra Committed by Lee Jones

mfd: tps6594: Use spi_get_chipselect() API 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 303feb3c ("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: default avatarAmit Kumar Mahapatra <amit.kumar-mahapatra@amd.com>
Link: https://lore.kernel.org/r/20231125092137.2948-2-amit.kumar-mahapatra@amd.comSigned-off-by: default avatarLee Jones <lee@kernel.org>
parent b85ea95d
...@@ -98,7 +98,7 @@ static int tps6594_spi_probe(struct spi_device *spi) ...@@ -98,7 +98,7 @@ static int tps6594_spi_probe(struct spi_device *spi)
spi_set_drvdata(spi, tps); spi_set_drvdata(spi, tps);
tps->dev = dev; tps->dev = dev;
tps->reg = spi->chip_select; tps->reg = spi_get_chipselect(spi, 0);
tps->irq = spi->irq; tps->irq = spi->irq;
tps->regmap = devm_regmap_init(dev, NULL, spi, &tps6594_spi_regmap_config); tps->regmap = devm_regmap_init(dev, NULL, spi, &tps6594_spi_regmap_config);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment