staging:iio:ad799x: Add helper macro for channel initialization
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 26 Mar 2013 18:43:00 +0000 (18:43 +0000)
committerJonathan Cameron <jic23@kernel.org>
Fri, 29 Mar 2013 09:16:46 +0000 (09:16 +0000)
commitae6d648940dbf3f158423865b51a70a6571d872d
tree00da5cb03f967273bdb90325c1d1a4970ca8b30b
parent34244ceccd99fab2a2640a5af7cc5a94d02c91cd
staging:iio:ad799x: Add helper macro for channel initialization

The ad779x channels all follow the same pattern. Add a helper macro to
initialize the channel spec, this allows us to drop quite a few lines.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/ad799x_core.c