mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-24 08:02:35 +00:00
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> |
History
|
|
|---|---|---|
| .. | ||
| ad7266.c | ||
| ad7298.c | ||
| ad7476.c | ||
| ad7791.c | ||
| ad7793.c | ||
| ad7887.c | ||
| ad7923.c | ||
| ad_sigma_delta.c | ||
| at91_adc.c | ||
| exynos_adc.c | ||
| Kconfig | ||
| lp8788_adc.c | ||
| Makefile | ||
| max1363.c | ||
| mcp320x.c | ||
| nau7802.c | ||
| ti-adc081c.c | ||
| ti_am335x_adc.c | ||
| twl6030-gpadc.c | ||
| viperboard_adc.c | ||