[PORT FROM R4]lis3dh: Send init events to userspace when status changes
BZ: 39086
In some use case, when sensor device's status changes, such as
enable/disable, interrupt/polling mode switching. Android framework
doesn't have enough accelerometer data to set window orientation
correctly, so we need to send them manually.
Change-Id: I53ba0b15b8dcabd01dab8209de9515570e5547a5
Signed-off-by: Leo Yan <leo.yan@intel.com>
Reviewed-on: http://android.intel.com:8080/52406
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Tang, HaifengX <haifengx.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>