staging:iio:dac:max517: Convert to channel spec
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 4 Jun 2012 09:36:20 +0000 (11:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Jun 2012 04:47:31 +0000 (13:47 +0900)
commit4cd8d87446d521b7824aa1be84d767c8b5300601
tree87570bac9dd20fc6d27cacfc41a063561a5c8b5d
parentcadb695113f6f30b0a19a0437dbcf000e1d3419a
staging:iio:dac:max517: Convert to channel spec

Convert the max517 driver to channel spec. As part of the conversion the
"out_voltage_1&2_raw" property, which updates both channel 1 and 2
simultaneously with the same value, is lost, since this is not really covered by
the IIO spec and has only a limited use case in practice.

Also the channel index for the sysfs files is now zero based instead of one
based, which means all channel numbers will be lower by one. E.g.
"out_voltage_1_scale" instead of "out_voltage_2_scale"

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Acked-by: Roland Stigge <stigge@antcom.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/dac/max517.c