iio: adc: ad7949: define and use bitfield names
authorLiam Beguin <lvb@xiphos.com>
Sun, 15 Aug 2021 21:33:05 +0000 (17:33 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 14 Sep 2021 11:00:30 +0000 (12:00 +0100)
commit595a0590f4fbcb39d73a7c55c79a7e7921ec1614
treeb2378a46ce98b41f2a460fbdfed9f8251639c488
parentd722f1e06fbc53eb369b39646945c1fa92068e74
iio: adc: ad7949: define and use bitfield names

Replace raw configuration register values by using FIELD_PREP and
defines to improve readability.

Signed-off-by: Liam Beguin <lvb@xiphos.com>
Link: https://lore.kernel.org/r/20210815213309.2847711-2-liambeguin@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7949.c