[PATCH 2/3] ARM: AT91: IIO: Add AT91 ADC driver.

Maxime Ripard maxime.ripard at free-electrons.com
Tue Nov 15 05:23:50 EST 2011


On 14/11/2011 22:32, Jonathan Cameron wrote:
> Just one more query on the IIO_CHAN_INFO_SCALE read.
> Sorry, missed this last time.  Its late so I may be going
> mad but the units seem out by 1000.

Wow, you're right. Indeed, if you multiply the value returned by
read_raw and scale, you get a value in millivolts, not micro...

> Also mysterious short as return value type in read_raw.

I will resend a new patchset with these two fixes.

Maxime

-- 
Maxime Ripard, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com



More information about the linux-arm-kernel mailing list