staging: iio: cdc: ad7746: add additional config defines
authorEva Rachel Retuya <eraretuya@gmail.com>
Fri, 28 Oct 2016 08:26:52 +0000 (16:26 +0800)
committerJonathan Cameron <jic23@kernel.org>
Tue, 1 Nov 2016 18:50:09 +0000 (18:50 +0000)
commit579d542534c96c9109b63e79a2c6d22e2bca21cc
tree49894790a6ee6789552be71d4de65d706ecc10c9
parent1b7e9e2cbd6478e0ebe40639ea36fefd3ffcf916
staging: iio: cdc: ad7746: add additional config defines

Introduce defines for shifting and mask under the config register for
better readability. Also, introduce helper variables for index
calculation.

Signed-off-by: Eva Rachel Retuya <eraretuya@gmail.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/cdc/ad7746.c