firmware_TouchpadMTB: speed up the launch time

The touchpad firmware test suite used to start rather slowly. The
reason is that the validators for every gesture will create their
own touchpad device objects which in turns take non-negligible time
to query the touchpad device node repeatedly. In this CL, a touchpad
device object is reused by validators. The launch time is improved
from a couple of seconds down to less than 1 second.

BUG=chromium-os:35024
TEST=Run the following command in the crosh of a chromebook. Observe
that The test suite starts within 1 second.
$ DISPLAY=:0 sudo python main.py

Change-Id: If3c2122f6b8ebd68bf288022e63a95addf936cca
Reviewed-on: https://gerrit.chromium.org/gerrit/35818
Reviewed-by: Chung-yih Wang <cywang@chromium.org>
Tested-by: Joseph Shyh-In Hwang <josephsih@chromium.org>
Commit-Ready: Joseph Shyh-In Hwang <josephsih@chromium.org>
1 file changed