Messages in this thread | | | Date | Fri, 23 Jan 2015 09:56:05 +0100 | From | Lars-Peter Clausen <> | Subject | Re: [PATCH] iio: imu: adis16400: Fix sign extension |
| |
On 01/23/2015 12:34 AM, Rasmus Villemoes wrote: > The intention is obviously to sign-extend a 12 bit quantity. But > because of C's promotion rules, the assignment is equivalent to "val16 > &= 0xfff;". Use the proper API for this. > > Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
| |