mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 13:03:25 +01:00
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 303feb3cc0
("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>
This commit is contained in:
parent
b85ea95d08
commit
4ae08845db
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue