lkml.org 
[lkml]   [2010]   [Sep]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] input: joydev: Fix JSIOCSAXMAP ioctl.
On Mon, Sep 20, 2010 at 11:51:25PM -0700, Kenneth Waters wrote:
> 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 <kwwaters@gmail.com>

Applied, thank you Kenneth.

> ---
> drivers/input/joydev.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/input/joydev.c b/drivers/input/joydev.c
> index d85bd8a..22239e9 100644
> --- a/drivers/input/joydev.c
> +++ b/drivers/input/joydev.c
> @@ -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;
> --
> 1.7.2.2
>

--
Dmitry


\
 
 \ /
  Last update: 2010-09-21 10:07    [W:0.041 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site