UPSTREAM: HID: multitouch: change for touch height/width

Quoting  from Jonathan Clarke in previous thread(2017/01/24):

"This division by 2 was added along with the touch width/height fields 6 years
ago so that those fields 'match the visual scale of the touch' for a specific
device (3M PCT)" "The scaling is also discarding information about touch size
(1 bit for each of width/height) which is useful for any application that wants
to know about it."

Jonathan mentioned just what I thought in a new project recently. It doesn't
make sense to discard 1 bit width/height in general case according to the spec
in multi-touch-protocol.txt so I would like to make a slight change here.

A quirk MT_QUIRK_TOUCH_SIZE_SCALING was added to service devices like 3M PCT
with a special visual scale and the division by 2 only take effect with devices
like that.

[jkosina@suse.cz: reformat changelog]
Signed-off-by: HungNien Chen <hn.chen@weidahitech.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

BUG=chrome-os-partner:61865
TEST=Build, boot and verified

(cherry picked from commit e9d0a26d34818e0f9340316f8016129231560966)
Signed-off-by: HungNien Chen <hn.chen@weidahitech.com>

Conflicts:
	drivers/hid/hid-multitouch.c

Change-Id: Ifc43afa74478fe326057aad7df58e680f05f2e3f
Reviewed-on: https://chromium-review.googlesource.com/452421
Commit-Ready: HN Chen <hn.chen@weida.corp-partner.google.com>
Tested-by: HN Chen <hn.chen@weida.corp-partner.google.com>
Reviewed-by: Dmitry Torokhov <dtor@chromium.org>
(cherry picked from commit 1910f96a2022e495b501bf7e0660076095f97f0e)
Reviewed-on: https://chromium-review.googlesource.com/459758
Reviewed-by: Charlie Mooney <charliemooney@chromium.org>
Commit-Queue: HN Chen <hn.chen@weida.corp-partner.google.com>
1 file changed