OSDN Git Service

GMINL-10383: Allow for prioritization of sensors
authorPatrick Porlan <patrick.porlan@intel.com>
Thu, 18 Jun 2015 16:05:18 +0000 (18:05 +0200)
committerPatrick Porlan <patrick.porlan@intel.com>
Tue, 23 Jun 2015 14:25:00 +0000 (16:25 +0200)
commitd3a01e8c2e558a87892467848aa3a2483a75f004
treeaad481c333b17b56229af303bae8dc4ef32e4c7a
parentba065c1f1c77a5a644ef0357c0e879527fc64d45
GMINL-10383: Allow for prioritization of sensors

This adds support for a 'secondary' quirk that ensures that
such sensors are listed after normal ones. One possible usage
is to list SAR proximity sensors after ALS ones.

i.e. setprop ro.iio.prox.sx9500.quirks "secondary"

The quirk is also implied by the presence of a negative
value in the last slot of the orientation matrix in the
Device Tree, for proximity sensors

Change-Id: I4d0b83b3220abfe7155b193e15356bb4e9ce8b1f
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
description.c
description.h
enumeration.c