summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorStefan Wahren <wahrenst@gmx.net>2024-09-30 11:30:54 +0200
committerMark Brown <broonie@kernel.org>2024-09-30 22:31:39 +0100
commitfa8ecda9876ac1e7b29257aa82af1fd0695496e2 (patch)
treeb0f034f408f8bacf0b276aebdb76fc7ce3b7ff54 /tools/perf/scripts/python
parent9852d85ec9d492ebef56dc5f229416c925758edc (diff)
spi: spi-fsl-lpspi: Adjust type of scldiv
The target value of scldiv is just a byte, but its calculation in fsl_lpspi_set_bitrate could be negative. So use an adequate type to store the result and avoid overflows. After that this needs range check adjustments, but this should make the code less opaque. Signed-off-by: Stefan Wahren <wahrenst@gmx.net> Reviewed-by: Frank Li <Frank.Li@nxp.com> Link: https://patch.msgid.link/20240930093056.93418-2-wahrenst@gmx.net Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions