ltr502als.c: Modify the way to change the config register
authorLeo Yan <leo.yan@intel.com>
Tue, 13 Mar 2012 05:39:07 +0000 (13:39 +0800)
committerbuildbot <buildbot@intel.com>
Thu, 15 Mar 2012 08:54:38 +0000 (01:54 -0700)
commit97beddd05ca9b9a155bc34277587bfb26f8200d3
tree39b61eba7186393a68fbea7607815bc932428949
parentc41034d9cc06cbd9a0e194e294b62e8f498058f1
ltr502als.c: Modify the way to change the config register

BZ: 26351

When change the device mode, we need to set the CONFIG REG to idle mode
first to disable interrupt. Otherwise, some interrupts may be triggered
abnormally during the mode switch.

Change-Id: I67792fce52fc1377aed9b5316b84a122451c7fde
Signed-off-by: Leo Yan <leo.yan@intel.com>
Reviewed-on: http://android.intel.com:8080/38779
Reviewed-by: Liu, Hong <hong.liu@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Monroy, German <german.monroy@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/hwmon/ltr502als.c