Skip to content
Commit 2bd72d84 authored by Jonathan Cameron's avatar Jonathan Cameron
Browse files

iio:adc:qcom-spmi-vadc : fix undefined __divdi3



A simple do_div call works here as all the signed 64 bit is
actually small and unsigned at this point, and the numerator is
u32.

Introduce a temporary u64 variable to avoid type comparison warnings
on some architectures.

Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
Cc: Rama Krishna Phani A <rphani@codeaurora.org>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent c3b2fdd0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment