Input: aiptek - use descriptors of current altsetting
authorJohan Hovold <johan@kernel.org>
Fri, 10 Jan 2020 19:59:52 +0000 (11:59 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 10 Jan 2020 22:42:56 +0000 (14:42 -0800)
commitcfa4f6a99fb183742cace65ec551b444852b8ef6
tree51b8568e9b458692b5fb3d4528341940112aebfa
parent3111491fca4f01764e0c158c5e0f7ced808eef51
Input: aiptek - use descriptors of current altsetting

Make sure to always use the descriptors of the current alternate setting
to avoid future issues when accessing fields that may differ between
settings.

Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Vladis Dronov <vdronov@redhat.com>
Link: https://lore.kernel.org/r/20191210113737.4016-4-johan@kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/tablet/aiptek.c