staging:iio:adis16400: Add helper macros for channel declaration
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 16 Jan 2013 12:48:00 +0000 (12:48 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sat, 26 Jan 2013 10:07:48 +0000 (10:07 +0000)
commit599acfbb974dbce63c3f33f169c74fffdadcfa72
tree4df526e49c402fae237f75a4b525f8cd06a8b890
parent1ffe2e7ac000b7a7c01b22cd64cc3d4ef01a9def
staging:iio:adis16400: Add helper macros for channel declaration

Most of the channels declared in the adis16400 driver look quite similar. This
patch adds a bunch of helper macros to initialize the channel spec for this
driver. This allows us to drastically reduce the number of lines of code needed
for the channel spec declaration.

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