summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2023-01-08 00:18:13 +0300
committerWolfram Sang <wsa@kernel.org>2023-03-16 22:29:02 +0300
commite9d373c3feffc7fb36927837254c25081b3da4a9 (patch)
tree21d588390c15042741c131cd1f3c9fef7038040b /tools/perf/scripts/python/export-to-sqlite.py
parent89151f6b007915fca95c5225cd1c37a419ba8cb9 (diff)
downloadlinux-e9d373c3feffc7fb36927837254c25081b3da4a9.tar.xz
i2c: cadence: Remove always false ternary operator
When selecting the clock dividers the Cadence I2C driver skips settings where the resulting I2C bus frequency is larger than the requested frequency. If the resulting frequency is lower it will compute the error to actual frequency. When calculating the difference it also handles the case where the resulting frequency is larger. Since the resulting frequency is always smaller or equal the computation of the error can be simplified by only considering this case. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Acked-by: Michal Simek <michal.simek@amd.com> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions