summaryrefslogtreecommitdiff
path: root/rust/helpers
diff options
context:
space:
mode:
authorJonas Gorski <jonas.gorski@gmail.com>2025-09-15 20:37:20 +0200
committerMark Brown <broonie@kernel.org>2025-09-22 09:29:41 +0100
commit099f942182e3695554cba44e4bafb08a4111b50f (patch)
tree4459749346ceb7ca82e1a58e13abcfb96416f9a1 /rust/helpers
parent188f63235bcdd207646773a8739387d85347ed76 (diff)
spi: keep track of number of chipselects in spi_device
There are several places where we need to iterate over a device's chipselect. To be able to do it efficiently, store the number of chipselects in spi_device, like we do for controllers. Since we now use a device supplied value, add a check to make sure it isn't more than we can support. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com> Link: https://patch.msgid.link/20250915183725.219473-3-jonas.gorski@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'rust/helpers')
0 files changed, 0 insertions, 0 deletions