mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
Input: joydev - fix JSIOCSAXMAP ioctl
Fixed JSIOCSAXMAP ioctl to update absmap, the map from hardware axis to
event axis in addition to abspam. This fixes a regression introduced
by 999b874f.
Signed-off-by: Kenneth Waters <[email protected]>
Cc: [email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
This commit is contained in:
parent
38e7afe96c
commit
d2520a426d
1 changed files with 3 additions and 0 deletions
|
|
@ -483,6 +483,9 @@ static int joydev_handle_JSIOCSAXMAP(struct joydev *joydev,
|
|||
|
||||
memcpy(joydev->abspam, abspam, len);
|
||||
|
||||
for (i = 0; i < joydev->nabs; i++)
|
||||
joydev->absmap[joydev->abspam[i]] = i;
|
||||
|
||||
out:
|
||||
kfree(abspam);
|
||||
return retval;
|
||||
|
|
|
|||
Loading…
Reference in a new issue