Input: usbtouchscreen - reduce number fo be16_to_cpu conversions
commit4aa5bbeca0fe561181e8fba089cd96e449ee5fca
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 8 Jun 2010 08:01:46 +0000 (8 01:01 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 8 Jun 2010 08:26:01 +0000 (8 01:26 -0700)
treea7765508f69637ba69b6d946e816b99ab980f292
parent8bf2269fc08b883c728fce2171e9c6747a6a91b4
Input: usbtouchscreen - reduce number fo be16_to_cpu conversions

Let's perform be16_to_cpu() conversions once for each received packet,
and then use cached values. Makes code a little bit easier to follow.

Tested-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/usbtouchscreen.c