Skip to content
Commit 5f1d651f authored by Karim Eshapa's avatar Karim Eshapa Committed by Jonathan Cameron
Browse files

staging:iio:accel:adis16240: sign extend function replace hard code duplication



Use sign_extend32 kernel function instead of code duplication,
Safe also for 16 bit. and remove declaration of bits variable not needed.

Signed-off-by: default avatarKarim Eshapa <karim.eshapa@gmail.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 5126aec5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment