Skip to content

Commit

Permalink
Merge pull request #119 from linuxwacom/hid/for-5.3
Browse files Browse the repository at this point in the history
hid/for 5.3

Merging despite checkpatch errors. The problem commits were created before our checkpatch automation was introduced.
  • Loading branch information
skomra committed Sep 18, 2019
2 parents 5dee2a3 + 8ad16d2 commit 73a2dae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 4.5/wacom_wac.c
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,8 @@ static int wacom_intuos_general(struct wacom_wac *wacom)
y >>= 1;
distance >>= 1;
}
if (features->type == INTUOSHT2)
distance = features->distance_max - distance;
input_report_abs(input, ABS_X, x);
input_report_abs(input, ABS_Y, y);
input_report_abs(input, ABS_DISTANCE, distance);
Expand Down Expand Up @@ -1063,7 +1065,7 @@ static int wacom_remote_irq(struct wacom_wac *wacom_wac, size_t len)
input_report_key(input, BTN_BASE2, (data[11] & 0x02));

if (data[12] & 0x80)
input_report_abs(input, ABS_WHEEL, (data[12] & 0x7f));
input_report_abs(input, ABS_WHEEL, (data[12] & 0x7f) - 1);
else
input_report_abs(input, ABS_WHEEL, 0);

Expand Down

0 comments on commit 73a2dae

Please sign in to comment.