]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcd8383173598cfe4c1f36f01f9363f99f3310471
tree4934062db2f2fbb01a3e6c36c761411fed83ee64
parent6f6ac089b644f9b26783aeb4c1bcbafc97c84b2e
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