spi: cs42l43: Don't limit native CS to the first chip select
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Wed, 6 Mar 2024 16:10:04 +0000 (16:10 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 6 Mar 2024 17:44:28 +0000 (17:44 +0000)
commit177cddaa5bdfcbc4c3d4594bb44ed8338765fc29
tree7635466c509dd2d6d10f6b0900e8466a9c1cb2e5
parent6415c7fe7cf420fa469095a34d9153f991391116
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: ef75e767167a ("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>
drivers/spi/spi-cs42l43.c