aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmit Kumar Mahapatra <amit.kumar-mahapatra@amd.com>2023-11-25 14:51:28 +0530
committerLee Jones <lee@kernel.org>2023-12-07 13:36:29 +0000
commit4ae08845db4c1f759b8382bc7527ab8249230e7f (patch)
treeb5cff3a85905357d8bb106f2864767100c017632
parentb85ea95d086471afb4ad062012a4d73cd328fa86 (diff)
downloadmfd-ib-mfd-spi-6.8.tar.gz
mfd: tps6594: Use spi_get_chipselect() API to access spi->chip_selectib-mfd-spi-v6.8ib-mfd-spi-6.8
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-2-amit.kumar-mahapatra@amd.com Signed-off-by: Lee Jones <lee@kernel.org>
-rw-r--r--drivers/mfd/tps6594-spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/tps6594-spi.c b/drivers/mfd/tps6594-spi.c
index f4b4f37f957f3..24b72847e3f5a 100644
--- a/drivers/mfd/tps6594-spi.c
+++ b/drivers/mfd/tps6594-spi.c
@@ -98,7 +98,7 @@ static int tps6594_spi_probe(struct spi_device *spi)
spi_set_drvdata(spi, tps);
tps->dev = dev;
- tps->reg = spi->chip_select;
+ tps->reg = spi_get_chipselect(spi, 0);
tps->irq = spi->irq;
tps->regmap = devm_regmap_init(dev, NULL, spi, &tps6594_spi_regmap_config);