Skip to content
Commit b311da85 authored by Rodrigo Ribeiro's avatar Rodrigo Ribeiro Committed by Jonathan Cameron
Browse files

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: default avatarRodrigo Ribeiro Carvalho <rodrigorsdc@gmail.com>
Reviewed-by: default avatarAlexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 62ed7a81
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment