iio: adc: at91_adc: allow to use full range of startup time
authorJan Leupold <leupold@rsi-elektrotechnik.de>
Wed, 17 Jun 2015 16:21:36 +0000 (18:21 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 19 Jul 2015 10:48:06 +0000 (11:48 +0100)
commit815983e9afcb21552e1b9d77e3755d394cbf5249
tree4c2628c0147e80e1959fda8fcf27b71149c31d5f
parent09f4dcc9443c4731b6669066bd1bc4312ef17bcc
iio: adc: at91_adc: allow to use full range of startup time

The DT-Property "atmel,adc-startup-time" is stored in an u8 for a microsecond
value. When trying to increase the value of STARTUP in Register AT91_ADC_MR
some higher values can't be reached.

Change the type in function parameter and private structure field from u8 to
u32.

Signed-off-by: Jan Leupold <leupold@rsi-elektrotechnik.de>
[nicolas.ferre@atmel.com: change commit message, increase u16 to u32 for startup time]
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/at91_adc.c