]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbadd4ad849a06f98a9aa254a6a45667f9808b880
tree7c621c678c86361cfd03e03d68990c31817e84ee
parent2c775f839b91d5ac663a7af000f46b93630a2534
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