summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2026-02-23 16:30:54 +0100
committerMark Brown <broonie@kernel.org>2026-02-23 19:10:26 +0000
commit507a071d9868cb60e4e76f8a06fc8eb014f59ae4 (patch)
tree1dc23a47d7d9c2c1c06003c97d1136ebf835e03f /tools/perf/scripts/python/libxed.py
parentfed6e5084894373d76270cad4a32eb6479ad8247 (diff)
spi: pxa2xx: use min() instead of min_t()
min_t(int, a, b) casts an 'u32' to 'int'. This might lead to the cases when big number is wrongly chosen. On the other hand, the SPI transfer speed rate is unsigned and driver uses signed type for an unknown reason. Change the type of the SPI transfer speed to be unsigned and convert to use min() instead of min_t(). Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: David Laight <david.laight.linux@gmail.com> Link: https://patch.msgid.link/20260223153117.2838840-1-andriy.shevchenko@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions