ad525x_dpot: use correct rdac channel for ad5251/ad5252
authorsteven miao <realmz6@gmail.com>
Tue, 26 Oct 2010 21:22:37 +0000 (14:22 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Oct 2010 23:52:14 +0000 (16:52 -0700)
commit4b068de9ab1c404734fde90ce5d3f4f5b4f0b9d5
tree82d62017c50365d5cb0f9773540df0cbeadc6f40
parenta4bd394956f20d0bfc0ca6ecfac2af4150da274a
ad525x_dpot: use correct rdac channel for ad5251/ad5252

The ad5251/ad5252 devices have rdac1 and rdac3, but no rdac0.  So make
sure we use the right channels so userspace gets correct data and not just
garbage.

Signed-off-by: steven miao <realmz6@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Cc: Michael Hennerich <michael.hennerich@analog.com>
Cc: Chris Verges <chrisv@cyberswitching.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/misc/ad525x_dpot.h