OSDN Git Service

STPK-1429 Disable a sensor if its character device can't be opened
authorPatrick Porlan <patrick.porlan@intel.com>
Thu, 3 Apr 2014 11:52:00 +0000 (13:52 +0200)
committersuyyala <sridhar.uyyala@intel.com>
Mon, 28 Apr 2014 02:40:39 +0000 (19:40 -0700)
commitd6f3b774caa35823f381ba6da33f1f8ae559c263
tree4fbb74051fdb0463723fc337a5a29e8e20f8fd97
parent9c1b08a7d8429e42bcd2ebb06ef2e2fc281754ab
STPK-1429 Disable a sensor if its character device can't be opened

It's an abnormal situation to have a sensor operating while its
associated character device couldn't be opened (the underlying
hardware may not be powered on). Reconciliate the HAL level state
with the underlying driver state in this case by reverting to
disabled state.

Issue: STPK-1429

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