OSDN Git Service

IRDA-2056: Minor rework to the trigger switching code
authorPatrick Porlan <patrick.porlan@intel.com>
Wed, 15 Oct 2014 12:13:13 +0000 (14:13 +0200)
committerAdriana Reus <adriana.reus@intel.com>
Tue, 21 Oct 2014 13:27:04 +0000 (16:27 +0300)
commit60c1864f4fd6d8283600d55d1dae9b98e40c5922
tree6e50da0e3a6ae20fa3ce33d26263e8106ef726f2
parent58f7faf3d4667cf0404b36753480aa131f176741
IRDA-2056: Minor rework to the trigger switching code

Isolate the test that we use to switch from the motion trigger to
the continous one (for accelerometer based games that are sensitive
to small motion thresholds) into a function. Also, specifically
deactivate this behaviour for drivers marked as terse: for those it
may make sense to initialize the motion trigger name field with the
same string as the initial trigger name field, so let's check for
the terse flag.

Change-Id: Ia666caed8f04345aca7c09d6a686107590ffc590
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
control.c