]> 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)
commitf990d7dbe675d56c209e53977c7980cd9323d0b1
tree4934062db2f2fbb01a3e6c36c761411fed83ee64
parentaa33400cdd2e10eced93a80ca3a47ca9fb202efd
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