staging:iio:accel:adis16203: sign extend function rather code duplication
authorKarim Eshapa <karim.eshapa@gmail.com>
Tue, 12 Jun 2018 16:48:38 +0000 (18:48 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 16 Jun 2018 18:04:53 +0000 (19:04 +0100)
commitc660abab5c7edbc9ec9cd3b7b8611e7bac01d0ac
treeba95d6788be827df8a48d479b27217dc4d386c10
parent727198f99e276c7ce8fc63e90489f63ad886ed39
staging:iio:accel:adis16203: sign extend function rather code duplication

Use sign_extend32 kernel function instead of code duplication.
This function is also safe for 16 bits.

Signed-off-by: Karim Eshapa <karim.eshapa@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/accel/adis16203.c