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
..
Kconfig iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver 2013-08-17 15:50:57 +01:00
Makefile iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver 2013-08-17 15:50:57 +01:00
ad7266.c iio: adc: ad7266: Use devm_* APIs 2013-08-03 18:40:38 +01:00
ad7298.c iio: adc: ad7298: Use devm_* APIs 2013-08-03 18:40:38 +01:00
ad7476.c iio: adc: ad7476: Use devm_* APIs 2013-08-03 18:40:39 +01:00
ad7791.c iio: adc: ad7791: Use devm_* APIs 2013-08-03 18:40:39 +01:00
ad7793.c iio: adc: ad7793: Use devm_* APIs 2013-08-03 18:40:39 +01:00
ad7887.c iio: adc: ad7887: Use devm_* APIs 2013-08-03 18:40:40 +01:00
ad7923.c iio: adc: ad7923: Use devm_* APIs 2013-08-03 18:40:40 +01:00
ad_sigma_delta.c iio:trigger: Introduce iio_tigger_{set,get}_drvdata 2013-03-25 21:06:09 +00:00
at91_adc.c iio: at91: fix adc_clk overflow 2013-09-18 19:43:20 +01:00
exynos_adc.c iio: exynos_adc: Use devm_iio_device_alloc 2013-08-03 18:40:42 +01:00
lp8788_adc.c iio: adc: lp8788_adc: Use devm_* APIs 2013-08-03 18:40:40 +01:00
max1363.c iio: max1363: Use devm_iio_device_alloc 2013-08-03 18:40:49 +01:00
mcp320x.c iio: adc: mcp320x: Use devm_* APIs 2013-08-03 18:40:41 +01:00
nau7802.c iio: adc: nau7802: Use devm_iio_device_alloc 2013-08-03 18:40:42 +01:00
ti-adc081c.c iio: adc: ti-adc081c: Use devm_* APIs 2013-08-03 18:40:42 +01:00
ti_am335x_adc.c Merge 3.11-rc5 into staging-next 2013-08-12 10:22:49 -07:00
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 iio: adc: viperboard_adc: Use devm_iio_device_alloc 2013-08-03 18:40:42 +01:00