Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 07086775 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Lee Jones
Browse files

iio: adc/imx25-gcq: Move incorrect do_div



The newly added driver uses do_div() to device a 32-bit number, which now
provokes a warning:

drivers/iio/adc/fsl-imx25-gcq.c: In function 'mx25_gcq_setup_cfgs':
include/asm-generic/div64.h:207:28: warning: comparison of distinct pointer types lacks a cast
  (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \

This replaces the do_div() call with a straight division operator.

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Fixes: 6df2e98c ("iio: adc: Add imx25-gcq ADC driver")
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 4f7ed234
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment