iio: chemical: bme680: use FIELD_GET macro
authorDavid Frey <dpfrey@gmail.com>
Fri, 17 Aug 2018 19:03:18 +0000 (12:03 -0700)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Aug 2018 16:08:25 +0000 (17:08 +0100)
commit3dcb60cd926ebfc8f85603d226457c9a38794209
tree661bd683992327d5a2fb3081f20ed5c962f8da91
parent8d3032c3692d247ad625863e949d419952db8cbd
iio: chemical: bme680: use FIELD_GET macro

Use the FIELD_GET macro instead of explicit mask and shift.

Signed-off-by: David Frey <dpfrey@gmail.com>
Reviewed-by: Himanshu Jha <himanshujha199640@gmail.com>
Tested-by: Himanshu Jha <himanshujha199640@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/chemical/bme680_core.c