mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-08 15:04:45 +00:00
spi: cs42l43: Don't limit native CS to the first chip select
As the chip selects can be configured through ACPI/OF/swnode, and
the set_cs() callback will only be called when a native chip select
is being used, there is no reason for the driver to only support the
native chip select as the first chip select. Remove the check that
introduces this limitation.
Fixes: ef75e76716
("spi: cs42l43: Add SPI controller support")
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://msgid.link/r/20240306161004.2205113-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
6415c7fe7c
commit
177cddaa5b
@ -148,8 +148,7 @@ static void cs42l43_set_cs(struct spi_device *spi, bool is_high)
|
||||
{
|
||||
struct cs42l43_spi *priv = spi_controller_get_devdata(spi->controller);
|
||||
|
||||
if (spi_get_chipselect(spi, 0) == 0)
|
||||
regmap_write(priv->regmap, CS42L43_SPI_CONFIG2, !is_high);
|
||||
regmap_write(priv->regmap, CS42L43_SPI_CONFIG2, !is_high);
|
||||
}
|
||||
|
||||
static int cs42l43_prepare_message(struct spi_controller *ctlr, struct spi_message *msg)
|
||||
|
Loading…
Reference in New Issue
Block a user