projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a841b62
)
HID: hid-multitouch: refactor initialization of ABS_MT_ORIENTATION
author
Benjamin Tissoires
<benjamin.tissoires@enac.fr>
Fri, 18 Mar 2011 13:27:55 +0000
(14:27 +0100)
committer
Jiri Kosina
<jkosina@suse.cz>
Mon, 21 Mar 2011 16:07:29 +0000
(17:07 +0100)
The way the input_set_abs_params was called for the new composite field
ABS_MT_ORIENTATION was not very clear at second reading. We can remove the
non-necessary call to set_abs and use the simple call to input_set_abs_params.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@enac.fr>
Reviewed-by: Stéphane Chatty <chatty@enac.fr>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-multitouch.c
patch
|
blob
|
history
diff --git
a/drivers/hid/hid-multitouch.c
b/drivers/hid/hid-multitouch.c
index e6e1ea2514906ab33ac55b2d5e7752fbd627b5a5..d31301e85c5699d31531a937688b97b9d9d7ecf2 100644
(file)
--- a/
drivers/hid/hid-multitouch.c
+++ b/
drivers/hid/hid-multitouch.c
@@
-235,9
+235,8
@@
static int mt_input_mapping(struct hid_device *hdev, struct hid_input *hi,
case HID_DG_HEIGHT:
hid_map_usage(hi, usage, bit, max,
EV_ABS, ABS_MT_TOUCH_MINOR);
- field->logical_maximum = 1;
- field->logical_minimum = 0;
- set_abs(hi->input, ABS_MT_ORIENTATION, field, 0);
+ input_set_abs_params(hi->input,
+ ABS_MT_ORIENTATION, 0, 1, 0, 0);
td->last_slot_field = usage->hid;
return 1;
case HID_DG_TIPPRESSURE: