]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc3a37ac973a7e25419981ac913e76fb2797a39c5
tree2e4c96e70687e9bf024310839f9983dafef116a6
parentbfc0253105d9d732e1085c6c88da6f4a024a883b
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