iio:ad5064: Fix address of the second channel for ad5065/ad5045/ad5025
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 1 Mar 2013 13:07:00 +0000 (13:07 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sat, 2 Mar 2013 16:22:13 +0000 (16:22 +0000)
commita26302628ad164980493ab7768a05a7f3a8d8842
tree7c621c678c86361cfd03e03d68990c31817e84ee
parent76426daf50d5df38893cc189e9ccd026093debc8
iio:ad5064: Fix address of the second channel for ad5065/ad5045/ad5025

The ad5065, ad5045, ad5025 use address '3' for the second channel, so they need
their own channel spec.

Note that ad5064_sync_powerdown_mode() also needs to be slightly updated since
it was relying on the fact that chan->address always equaled chan->channel.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/dac/ad5064.c