diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-09-05 10:19:38 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-09-19 11:39:47 -0700 |
commit | 46b018fa95003f8159f5fcf9b8cd89acaea34e31 (patch) | |
tree | 86b78db1b1d894690e6fe798805eef295cc67650 /drivers/input/input.c | |
parent | 86a39bffc4e94f80527c14fe00a3acb432910ef3 (diff) | |
download | linux-46b018fa95003f8159f5fcf9b8cd89acaea34e31.tar.bz2 |
Input: walkera0701 - fix abs() calculations on 64 bit values
abs() function can not be used with 64 bit values, so let's switch to
abs64(). From include/linux/kernel.h:
/*
* abs() handles unsigned and signed longs, ints, shorts and chars.
* For all input types abs() returns a signed long.
* abs() should not be used for 64-bit types (s64, u64, long long)
* - use abs64() for those.
*/
Reported-by: Joe Perches <joe@perches.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/input.c')
0 files changed, 0 insertions, 0 deletions