projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0bf574
)
HID: wacom: Don't clear bits unintentionally
author
Dan Carpenter
<dan.carpenter@oracle.com>
Thu, 10 Nov 2016 19:25:39 +0000
(22:25 +0300)
committer
Jiri Kosina
<jkosina@suse.cz>
Tue, 15 Nov 2016 11:11:50 +0000
(12:11 +0100)
This is trying to clear the lower 32 bits but the type is wrong so it
clears everything.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hid/wacom_wac.c
b/drivers/hid/wacom_wac.c
index 0723ba8906faa0b45696d9b9e02d577aa5992cab..1cf4608ae9291bf2ca1b53fe08a4aea6b7410bda 100644
(file)
--- a/
drivers/hid/wacom_wac.c
+++ b/
drivers/hid/wacom_wac.c
@@
-1765,7
+1765,7
@@
static int wacom_wac_pen_event(struct hid_device *hdev, struct hid_field *field,
wacom_wac->hid_data.tipswitch |= value;
return 0;
case HID_DG_TOOLSERIALNUMBER:
- wacom_wac->serial[0] = (wacom_wac->serial[0] & ~0xFFFFFFFF);
+ wacom_wac->serial[0] = (wacom_wac->serial[0] & ~0xFFFFFFFF
ULL
);
wacom_wac->serial[0] |= value;
return 0;
case WACOM_HID_WD_SENSE: