mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 22:23:14 -04:00
drv8424_mmi: update position/status w/o sensors
Driver option to work w/o data from position sensors has a caveat. Current position at power up is not detected, but set manually. This prevents Rollable Display HAL from properly updating active touch region. This change enforces position/status sysfs entries update when option no sensors present in device tree Change-Id: If7c1fc59695652816003a192323bc4393f1e184f Signed-off-by: Konstantin Makariev <hcv867@motorola.com> Reviewed-on: https://gerrit.mot.com/2294160 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Qing Chang <qing@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
3006d8909c
commit
8dce1b9e6e
1 changed files with 2 additions and 0 deletions
|
|
@ -2016,7 +2016,9 @@ static int moto_drv8424_probe(struct platform_device *pdev)
|
|||
} else {
|
||||
md->time_out = MOTOR_DEFAULT_EXPIRE;
|
||||
atomic_set(&md->position, POS_COMPACT);
|
||||
moto_drv8424_cmd_push(md, CMD_POSITION, 0);
|
||||
atomic_set(&md->status, STATUS_STOPPED_COMPACT);
|
||||
moto_drv8424_cmd_push(md, CMD_STATUS, 0);
|
||||
dev_info(dev, "Assume COMPACT position\n");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue