diff options
author | David Lechner <[email protected]> | 2024-01-23 15:49:46 -0600 |
---|---|---|
committer | Mark Brown <[email protected]> | 2024-01-24 16:13:38 +0000 |
commit | b204aa0f99cfe3c9d796ecfc0bc6f3f89585789e (patch) | |
tree | 69927413ee63abc7de8bea87059692ecb8d8e636 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 18ab9e9e8889ecba23a5e8b7f8924f09284e33d8 (diff) |
spi: consolidate setting message->spi
Previously, __spi_sync() and __spi_async() set message->spi to the spi
device independently after calling __spi_validate(). __spi_validate()
also would conditionally set this if it needed to split the message
since it wasn't set yet.
Since both __spi_sync() and __spi_async() call __spi_validate(), we can
consolidate this into only setting message->spi once (unconditionally)
in __spi_validate(). This will also save any future callers of
__spi_validate() from also needing to set message->spi.
Signed-off-by: David Lechner <[email protected]>
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions