mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 00:43:12 +00:00
The commit473d12f763("iio: hid-sensor-attributes: Convert to use int_pow()") converted to use generic int_pow() helper. Though, the generic one returns 64-bit value and, in cases when it is used as divisor, it compels 64-bit division from compiler. In order to fix this, introduce a temporary 32-bit variable to hold the result of int_pow() and use it as divisor afterwards. In couple of cases, replace int_pow() with a predefined unit factors for time and frequency. Fixes:473d12f763("iio: hid-sensor-attributes: Convert to use int_pow()") Reported-by: kbuild test robot <[email protected]> Reported-by: Nathan Chancellor <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Acked-by: Srinivas Pandruvada <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>