Turn off ToF sensor force device on

Turn off STMVL53L1 ToF sensor force_device_on and
let the ToF power supllies (VDD) to disable during
power down, otherwise ToF VDD will always On.

Change-Id: I17363f88921868a05ef833ce63c94cff0c7b6ecb
Reviewed-on: https://gerrit.mot.com/1368523
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Sumit Jamadar <xkbr38@motorola.com>
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Alex Narita 2019-06-07 19:28:27 -03:00 • committed by Alex Yuri Miyagusiku Narita
commit 01d541eec7

View file

@ -179,7 +179,10 @@ static long stmvl53l1_compat_ioctl(struct file *file,
unsigned int cmd, unsigned long arg);
#endif
static bool force_device_on_en_default = true;
// Turn off force_device_on flag and let ToF power supplies power down when ToF
// sensor ToF sensor powers down.
// If flag is set to true then VDD regulator will never turn down.
static bool force_device_on_en_default = false;
module_param(force_device_on_en_default, bool, 0444);
MODULE_PARM_DESC(force_device_on_en_default,