summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-10-13 22:34:23 +0200
committerHenrik Rydberg <rydberg@euromail.se>2010-10-13 22:34:23 +0200
commit9ba7722511c205ed07aaa25ed5ac3c2a6862df46 (patch)
treec4d7a658ef0ac6d8e189860ba44692db9bd3357c /usr
parent12a29c0d3c2c800070e54c4b007383bb81556cea (diff)
Fix module-reload bug
Bug found by tito; every time the module is reloaded, the logical maximum would increase by a factor of eight. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'usr')
-rw-r--r--usr/src/dkms_source_tree/hid-egalax.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/dkms_source_tree/hid-egalax.c b/usr/src/dkms_source_tree/hid-egalax.c
index 7519d95..00c3af6 100644
--- a/usr/src/dkms_source_tree/hid-egalax.c
+++ b/usr/src/dkms_source_tree/hid-egalax.c
@@ -70,7 +70,7 @@ static int egalax_input_mapping(struct hid_device *hdev, struct hid_input *hi,
70 case HID_UP_GENDESK: 70 case HID_UP_GENDESK:
71 switch (usage->hid) { 71 switch (usage->hid) {
72 case HID_GD_X: 72 case HID_GD_X:
73 field->logical_maximum <<= 3; 73 field->logical_maximum = 32760;
74 hid_map_usage(hi, usage, bit, max, 74 hid_map_usage(hi, usage, bit, max,
75 EV_ABS, ABS_MT_POSITION_X); 75 EV_ABS, ABS_MT_POSITION_X);
76 set_abs(input, ABS_MT_POSITION_X, field, SN_MOVE); 76 set_abs(input, ABS_MT_POSITION_X, field, SN_MOVE);
@@ -78,7 +78,7 @@ static int egalax_input_mapping(struct hid_device *hdev, struct hid_input *hi,
78 set_abs(input, ABS_X, field, SN_MOVE); 78 set_abs(input, ABS_X, field, SN_MOVE);
79 return 1; 79 return 1;
80 case HID_GD_Y: 80 case HID_GD_Y:
81 field->logical_maximum <<= 3; 81 field->logical_maximum = 32760;
82 hid_map_usage(hi, usage, bit, max, 82 hid_map_usage(hi, usage, bit, max,
83 EV_ABS, ABS_MT_POSITION_Y); 83 EV_ABS, ABS_MT_POSITION_Y);
84 set_abs(input, ABS_MT_POSITION_Y, field, SN_MOVE); 84 set_abs(input, ABS_MT_POSITION_Y, field, SN_MOVE);