diff options
author | 2025-05-20 17:25:45 +0200 | |
---|---|---|
committer | 2025-05-23 10:02:27 +0200 | |
commit | 2b2805404c926b8dcd5c5c13d240722da714906e (patch) | |
tree | 98f3444daeb2e92d0be07e1794b6cd8c0cd66d8f /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | i2c: viai2c-wmt: Replace dev_err() with dev_err_probe() in probe function (diff) | |
download | linux-rng-2b2805404c926b8dcd5c5c13d240722da714906e.tar.xz linux-rng-2b2805404c926b8dcd5c5c13d240722da714906e.zip |
i2c: mlxbf: avoid 64-bit division
The 64-bit division in mlxbf_i2c_get_ticks() causes link failures
when compile-testing on 32-bit machines:
ERROR: modpost: "__udivdi3" [drivers/i2c/busses/i2c-mlxbf.ko] undefined!
Change this to a div_u64(), which should replace the constant division
with a a multiply/shift combination in the mlxbf_i2c_get_ticks().
The frequency calculation functions require a slow library call but
should be used much rarer.
Fixes: 053859002c20 ("i2c: mlxbf: Allow build with COMPILE_TEST")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20250520152600.1975628-1-arnd@kernel.org
Signed-off-by: Andi Shyti <andi@smida.it>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions