From: Lars-Peter Clausen Date: Fri, 7 Oct 2011 08:31:42 +0000 (+0200) Subject: staging:iio:dac:ad5638: Fix channel address X-Git-Tag: v3.2-rc1~169^2^2~128 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a45186c0cdd35e6b79aeeff6e535c5d5c20ac93d;p=pandora-kernel.git staging:iio:dac:ad5638: Fix channel address Commit c6fc806247 ("staging:iio: ABI rework - add in_ or out_ prefix to channnels") added the AD5868_CHANNEL macro to simplify channel initialization. Unfortunately the macro hardcodes the channel's address to AD5686_ADDR_DAC0. As a result writing to any of the channels will change the value of the first channel. This patch fixes the issue by calculating the channel address based on the channel number. Signed-off-by: Lars-Peter Clausen Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed