diff options
author | Jonas Gorski <jonas.gorski@gmail.com> | 2025-09-15 20:37:21 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2025-09-22 09:29:42 +0100 |
commit | 1c923f624439b26b6740cdd2a9f7a12b1968f3f3 (patch) | |
tree | fd89aa8ecc2863c780486547c79a7132089fa4d1 /rust/helpers/helpers.c | |
parent | 099f942182e3695554cba44e4bafb08a4111b50f (diff) |
spi: move unused device CS initialization to __spi_add_device()
Using spi_device::num_chipselect, initialize unused device CS as invalid
at registration time in __spi_add_device(), and drop it from the
different allocation paths.
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Link: https://patch.msgid.link/20250915183725.219473-4-jonas.gorski@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions