linux-sg2042/drivers/input/tablet
Mike Auty d9f66c1a46 Input: wacom - fix mousewheel handling for old wacom tablets
This fixes a regression introduced in
3b57ca0f80.

The data[6] byte contains either 1 or -1 depending on the whether the
mouse wheel on older wacom tablets is moved down (1) or up (-1).  The
patch introduced in the above commit changed the cast from (signed char)
to (signed).  When cast as a signed integer and negated, the value of -1
(stored in the byte as 0xff) became -255 rather than 1.  This patch
reverts the cast to a (signed char) and also removes an unnecessary
(signed) cast, as all the values operated on are bitmasked.

Signed-off-by: Mike Auty <ikelos@gentoo.org>
Reviewed-by: Ping Cheng <pingc@wacom.com>
Cc; stable@kernel.org
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2010-08-28 21:39:04 -07:00
..
Kconfig Input: aiptek - add support for Genius G-PEN 560 tablet 2008-04-15 13:13:10 -04:00
Makefile Input: move USB tablets under drivers/input/tablet 2007-05-08 01:41:29 -04:00
acecad.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6 2010-05-20 21:26:12 -07:00
aiptek.c Input: switch to input_abs_*() access functions 2010-08-02 20:29:56 -07:00
gtco.c USB: rename usb_buffer_alloc() and usb_buffer_free() users 2010-05-20 13:21:38 -07:00
kbtab.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6 2010-05-20 21:26:12 -07:00
wacom.h Input: wacom - use get_unaligned to access unaligned data 2010-04-13 23:24:42 -07:00
wacom_sys.c Input: wacom - add Cintiq 21UX2 and Intuos4 WL 2010-06-04 00:43:17 -07:00
wacom_wac.c Input: wacom - fix mousewheel handling for old wacom tablets 2010-08-28 21:39:04 -07:00
wacom_wac.h Input: wacom - add support for DTU2231 and DTU1631 2010-06-28 01:12:26 -07:00