diff options
author | Rasmus Villemoes <[email protected]> | 2015-01-23 00:34:02 +0100 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2015-01-26 21:06:42 +0000 |
commit | 19e353f2b344ad86cea6ebbc0002e5f903480a90 (patch) | |
tree | a5a64f51ade752a2779877140bbb11c8ca8c51e3 /lib/memory-notifier-error-inject.c | |
parent | f7067a5ad717d4dbb4faa3ec56744152f6ba97ad (diff) |
iio: imu: adis16400: Fix sign extension
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 <[email protected]>
Acked-by: Lars-Peter Clausen <[email protected]>
Cc: [email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions