drivers/hwmon/adcxx.c: fix for single-channel ADCs
authorJosé Miguel Gonçalves <jose.goncalves@inov.pt>
Fri, 5 Mar 2010 21:43:58 +0000 (13:43 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Mar 2010 19:26:45 +0000 (11:26 -0800)
commit5748150eabdacd3f870c311b63d32f5e312bf624
treede0aa06ad69a2ff2f9896ce4d8523ee84d699555
parent4cae787840ae82aa02649f45c46839b349034435
drivers/hwmon/adcxx.c: fix for single-channel ADCs

While testing an ADC121S021 in an embedded board with a S3C2142 SoC (ARM
core), I have found that the 'adcxx' driver does not handle correctly
single channel ADCs from this chip family.  For single channel chips you
must only issue one read transfer for correct measurement.

Signed-off-by: Jose Miguel Goncalves <jose.goncalves@inov.pt>
Cc: Marc Pignat <marc.pignat@hevs.ch>
Cc: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/hwmon/adcxx.c