diff options
author | Benjamin Tissoires <benjamin.tissoires@gmail.com> | 2012-11-14 16:59:18 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-11-15 10:08:56 +0100 |
commit | afbcb04c181f36634f4af207bb0c9cc46b7405e4 (patch) | |
tree | 1d41dd184948bc2c940a9b38fdf62add230d2b1f /drivers/hid/hid-core.c | |
parent | 54f4c0c3e9d9ad50bf58a4f7c2bbdfb3fa4ab3a7 (diff) | |
download | blackbird-op-linux-afbcb04c181f36634f4af207bb0c9cc46b7405e4.tar.gz blackbird-op-linux-afbcb04c181f36634f4af207bb0c9cc46b7405e4.zip |
HID: multitouch: get maxcontacts also from logical_max value
Win8 devices are required to present the feature "Maximum Contact Number".
Fortunately all win7 devices I've seen presents this feature.
If the current value is 0, then, the driver can get the actual supported
contact count by refering to the logical_max.
This win8 specification ensures that logical_max may not be above 250.
This also allows us to detect when devices like irtouch or stantum reports
an obviously wrong value of 255.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Acked-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-core.c')
0 files changed, 0 insertions, 0 deletions