diff options
author | Stefan Wahren <[email protected]> | 2024-09-30 11:30:54 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2024-09-30 22:31:39 +0100 |
commit | fa8ecda9876ac1e7b29257aa82af1fd0695496e2 (patch) | |
tree | b0f034f408f8bacf0b276aebdb76fc7ce3b7ff54 /tools/perf/scripts/python/gecko.py | |
parent | 9852d85ec9d492ebef56dc5f229416c925758edc (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 <[email protected]>
Reviewed-by: Frank Li <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions