Re: [PATCH v2] staging:iio:accel:adis16240: sign extend function avoiding code duplication

2018-06-16 Thread Jonathan Cameron
On Tue, 12 Jun 2018 18:21:53 +0200 Karim Eshapa wrote: > 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: Karim Eshapa Please consider how a patch is applied and resend as a v3 which ca

[PATCH v2] staging:iio:accel:adis16240: sign extend function avoiding code duplication

2018-06-12 Thread Karim Eshapa
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: Karim Eshapa >On Tue, 2018-06-12 at 01:38 +0200, Karim Eshapa wrote: >> Use sign_extend32 kernel function instead of code duplication. >> Safe a