Re: [PATCH] guessing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/01/17 21:01, Jonathan Cameron wrote:
And that wasn't meant to go out with this title.

Sorry.

Jonathan
> ---
>  drivers/iio/adc/qcom-spmi-vadc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/iio/adc/qcom-spmi-vadc.c b/drivers/iio/adc/qcom-spmi-vadc.c
> index faaf711325b5..0a19761d656c 100644
> --- a/drivers/iio/adc/qcom-spmi-vadc.c
> +++ b/drivers/iio/adc/qcom-spmi-vadc.c
> @@ -641,7 +641,7 @@ static int vadc_scale_therm(struct vadc_priv *vadc,
>  	vadc_scale_calib(vadc, adc_code, prop, &voltage);
>  
>  	if (prop->calibration == VADC_CALIB_ABSOLUTE)
> -		voltage /= 1000;
> +		voltage = div64_s64(voltage, 1000);
>  
>  	vadc_map_voltage_temp(adcmap_100k_104ef_104fb,
>  			      ARRAY_SIZE(adcmap_100k_104ef_104fb),
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux