staging: iio: accel: adis16240: Improve readability on write_raw function
authorRodrigo Ribeiro <rodrigorsdc@gmail.com>
Tue, 13 Aug 2019 19:31:01 +0000 (16:31 -0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 18 Aug 2019 19:12:52 +0000 (20:12 +0100)
commitb311da85f7944a98fdc45c2fc92d74234e22995c
treebb5bef6509275e676fcd3a5a70ae8f2a1ee87dcf
parent62ed7a81ef81b501a0ef3ecda532a34c6b4deb9b
staging: iio: accel: adis16240: Improve readability on write_raw function

Replace shift and minus operation by GENMASK macro and remove the local
variables used to store intermediate data.

Signed-off-by: Rodrigo Ribeiro Carvalho <rodrigorsdc@gmail.com>
Reviewed-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/accel/adis16240.c