]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc/imx25-gcq: Move incorrect do_div
authorArnd Bergmann <arnd@arndb.de>
Fri, 12 Feb 2016 11:15:29 +0000 (12:15 +0100)
committerLee Jones <lee.jones@linaro.org>
Wed, 9 Mar 2016 05:50:51 +0000 (12:50 +0700)
commita3913603b8cd52c414ddcd0f2fbc0dcce256746e
tree8fd8d1260b620d6d939de728833d5beeb0f9acc5
parentbeff855deb49386b4885aeb6bb9fe9e69ec3c565
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: Arnd Bergmann <arnd@arndb.de>
Fixes: 413bcc37e599 ("iio: adc: Add imx25-gcq ADC driver")
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/iio/adc/fsl-imx25-gcq.c