summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorJason Gerecke <killertofu@gmail.com>2015-08-06 01:44:53 +0300
committerJiri Kosina <jkosina@suse.cz>2015-08-11 00:49:56 +0300
commit0be017120b80f0fe3da9a8239f989a27e54828f2 (patch)
tree2c06335a64e7806aa646459a3c409c741ab5f7dc /init
parent0621809e37936e7c2b3eac9165cf2aad7f9189eb (diff)
downloadlinux-0be017120b80f0fe3da9a8239f989a27e54828f2.tar.xz
HID: wacom: Report correct device resolution when using the wireless adapater
The 'wacom_wireless_work' function does not recalculate the tablet's resolution, causing the value contained in the 'features' struct to always be reported to userspace. This value is valid only for the pen interface, meaning that the value will be incorrect for the touchpad (if present). This in particular causes problems for libinput which relies on the reported resolution being correct. This patch adds the necessary calls to recalculate the resolution for each interface. This requires a little bit of code shuffling since both the 'wacom_set_default_phy' and 'wacom_calculate_res' are declared below their new first point of use in 'wacom_wireless_work'. Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions