Skip to content

Commit 4ae0884

Browse files
Amit Kumar Mahapatralag-linaro
authored andcommitted
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 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-2-amit.kumar-mahapatra@amd.com Signed-off-by: Lee Jones <lee@kernel.org>
1 parent b85ea95 commit 4ae0884

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/mfd/tps6594-spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ static int tps6594_spi_probe(struct spi_device *spi)
9898
spi_set_drvdata(spi, tps);
9999

100100
tps->dev = dev;
101-
tps->reg = spi->chip_select;
101+
tps->reg = spi_get_chipselect(spi, 0);
102102
tps->irq = spi->irq;
103103

104104
tps->regmap = devm_regmap_init(dev, NULL, spi, &tps6594_spi_regmap_config);

0 commit comments

Comments
 (0)