staging:iio:dac:ad5064: Prepare driver for the addition of chip variants
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 21 Feb 2012 17:38:14 +0000 (18:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Feb 2012 20:12:25 +0000 (12:12 -0800)
commit83c169d57e8e7496737ced86b93235990864044b
tree4934062db2f2fbb01a3e6c36c761411fed83ee64
parent1d0d879405db0a845584a1e7a15b39de1f4f7e53
staging:iio:dac:ad5064: Prepare driver for the addition of chip variants

Prepare the driver for the addition of chip variants with a different number of
channels. This is done by not hard-coding the number of channels, but instead
add a field to the chip info struct holding the number of channels. Also do not
embed the channel specs into the chip info, but rather store them independently.
This allows sharing the same channel spec between different chip infos.

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