linux/drivers/iio/adc
Josh Wu db10e20117 iio: at91: fix adc_clk overflow
The adc_clk variable is currently defined using a 32-bits unsigned integer,
which will overflow under some very valid range of operations.

Such overflow will occur if, for example, the parent clock is set to a
20MHz frequency and the ADC startup time is larger than 215ns.

To fix this, introduce an intermediate variable holding the clock rate
in kHz.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2013-09-18 19:43:20 +01:00
..
ad7266.c
ad7298.c
ad7476.c
ad7791.c
ad7793.c
ad7887.c
ad7923.c
ad_sigma_delta.c
at91_adc.c iio: at91: fix adc_clk overflow 2013-09-18 19:43:20 +01:00
exynos_adc.c
Kconfig iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver 2013-08-17 15:50:57 +01:00
lp8788_adc.c
Makefile iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver 2013-08-17 15:50:57 +01:00
max1363.c iio: max1363: Use devm_iio_device_alloc 2013-08-03 18:40:49 +01:00
mcp320x.c
nau7802.c
ti_am335x_adc.c Merge 3.11-rc5 into staging-next 2013-08-12 10:22:49 -07:00
ti-adc081c.c
twl6030-gpadc.c iio: adc: twl6030-gpadc: fix error return code in twl6030_gpadc_read_raw() 2013-08-28 20:45:43 +01:00
viperboard_adc.c