Lukas Wunner ec679bda63
spi: bcm2835: Allow arbitrary number of slaves
Since commit 571e31fa60b3 ("spi: bcm2835: Cache CS register value for
->prepare_message()"), the number of slaves has been limited by a
compile-time constant.  This was necessitated by statically-sized
arrays in the driver private data which contain per-slave register
values.

As suggested by Mark, move those register values to a per-slave
controller_state which is allocated on ->setup and freed on ->cleanup.
The limitation on the number of slaves is thus lifted.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Cc: Joe Burmeister <joe.burmeister@devtank.co.uk>
Cc: Phil Elwell <phil@raspberrypi.com>
Link: https://lore.kernel.org/r/a847c01f09400801e74e0630bf5a0197591554da.1622150204.git.lukas@wunner.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2021-06-02 12:03:39 +01:00
..
2021-03-10 12:46:53 +00:00
2021-04-26 16:32:11 -07:00
2020-10-08 23:00:06 +01:00
2020-07-17 16:38:47 +01:00
2021-04-21 16:07:04 +01:00
2021-04-30 12:48:14 -07:00
2020-10-24 10:33:08 -07:00
2021-05-11 15:42:47 +01:00