diff options
author | Lukas Wunner <lukas@wunner.de> | 2021-05-28 00:32:00 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-06-02 14:03:39 +0300 |
commit | ec679bda639fe84b78d473526ae27c74dea383fb (patch) | |
tree | 4ae7588911e8a18b7aeffeac95c2104c2faf3349 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 1a435466b0d470eb9095da0efefea5f7f69acf9c (diff) | |
download | linux-ec679bda639fe84b78d473526ae27c74dea383fb.tar.xz |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions