# Re: \[PATCH v2 1/2\] HID: wacom: Properly report negative values from Intuos Pro 2 Bluetooth

- From: Jiri Kosina \<jikos@kernel.org\>
- Date: 2017-09-06 09:02:03 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2017/09/6814272
- Thread: https://ratatoskr.run/linux-input/2017/08/6811036/t.md

```text
On Wed, 30 Aug 2017, Jason Gerecke wrote:

> The wacom driver's IRQ handler for Bluetooth reports from the 2nd-gen
> Intuos Pro does not correctly process negative numbers. Values for
> tilt and rotation (which can go negative) are instead interpreted as
> unsigned and so jump to very large values when the data should be
> negative. This commit properly casts the data to ensure we report
> negative numbers when necessary.
> 
> Fixes: 4922cd2 ("HID: wacom: Support 2nd-gen Intuos Pro's Bluetooth classic interface")
> Cc: <redacted> # v4.11
> Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>

Both patches applied to for-4.14/upstream-fixes.

-- 
Jiri Kosina
SUSE Labs

```
