Input: optimize events_per_packet count calculation
authorAnshul Garg <anshul.g@samsung.com>
Sat, 13 Dec 2014 19:58:23 +0000 (11:58 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 16 Dec 2014 05:45:55 +0000 (21:45 -0800)
commitbaf332c0f1cede26e9c2af6276b36b4c3a36e34a
treee1b1c89c0d056b1e00865a6bdb4dd58e0e46e0d8
parent189387f9e0affb491b8c8833b6afd9623ab7f26a
Input: optimize events_per_packet count calculation

This patch avoids unnecessary operations while estimating events per
packet for an input device when event type is not set.

Signed-off-by: Anshul Garg <anshul.g@samsung.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/input.c