staging: iio: ad7780: set pattern values and masks directly
authorRenato Lui Geh <renatogeh@gmail.com>
Sat, 16 Mar 2019 02:14:14 +0000 (23:14 -0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 4 Apr 2019 19:20:03 +0000 (20:20 +0100)
commit33e1f90204f0a291f898c371f68557892526160c
tree2e4c96e70687e9bf024310839f9983dafef116a6
parent0ee6d5ebe13df2281c192c03adbd59c3e4f4e468
staging: iio: ad7780: set pattern values and masks directly

The AD7780 driver contains status pattern bits designed for checking
whether serial transfers have been correctly performed. Pattern macros
were previously generated through bit fields. This patch sets good
pattern values directly and masks through GENMASK.

Signed-off-by: Renato Lui Geh <renatogeh@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/adc/ad7780.c