Re: [PATCH 3/3] Staging: iio: adis16209: Use sign_extend32 and adjust a switch statement

2018-02-18 Thread Jonathan Cameron
On Sat, 17 Feb 2018 21:51:35 +0530 Shreeya Patel wrote: > Use sign_extend32 function instead of manually coding it. Also, adjust a > switch block to explicitly match channels and return -EINVAL as default > case which improves code readability. Two items, two

[PATCH 3/3] Staging: iio: adis16209: Use sign_extend32 and adjust a switch statement

2018-02-17 Thread Shreeya Patel
Use sign_extend32 function instead of manually coding it. Also, adjust a switch block to explicitly match channels and return -EINVAL as default case which improves code readability. Signed-off-by: Shreeya Patel --- drivers/staging/iio/accel/adis16209.c | 15