summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorDavid Lechner <dlechner@baylibre.com>2024-04-30 23:15:27 +0300
committerMark Brown <broonie@kernel.org>2024-05-01 05:01:21 +0300
commit52267fe8456a2a05f70b29d68292eec789c960b9 (patch)
tree4266fb86db9e0882e7aac7523ab10ba8f6602d5e /tools/perf/scripts/python/export-to-postgresql.py
parent47766799f546249813e97a0ccde8978ba114e89f (diff)
downloadlinux-52267fe8456a2a05f70b29d68292eec789c960b9.tar.xz
spi: use spi_valid_{tx,rx}buf() in stats function
There are macros spi_valid_txbuf() and spi_valid_rxbuf() for determining if an xfer actually intended to send or receive data. These checks were hard-coded in spi_statistics_add_transfer_stats(). We can make use of the macros instead to make the code more readable and more robust against potential future changes in case the definition of what valid means changes. The macro takes the spi_message as an argument, so we need to change spi_statistics_add_transfer_stats() to take the spi_message as an argument instead of the controller. Signed-off-by: David Lechner <dlechner@baylibre.com> Link: https://lore.kernel.org/r/20240430201530.2138095-3-dlechner@baylibre.com 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