mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
touchscreen_mmi: selete on state when panel register.
If vendor dtsi add touchscreen mmi pinctrl on state, select this state when panel registered to touchscreen class. Change-Id: I01c989da2e2b66dd57c818c8322f0969e127dc25 Signed-off-by: haojl2 <haojl2@motorola.com> Reviewed-on: https://gerrit.mot.com/1557379 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jianqi Yang <yangj@motorola.com> Reviewed-by: <litong20@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
2e439ca820
commit
814f0c227c
1 changed files with 3 additions and 0 deletions
|
|
@ -558,6 +558,9 @@ int ts_mmi_dev_register(struct device *parent,
|
|||
!IS_ERR_OR_NULL(touch_cdev->pinctrl_off_state)) {
|
||||
dev_info(DEV_TS, "%s: No pinctrl method add default\n", __func__);
|
||||
touch_cdev->mdata->pinctrl = ts_mmi_default_pinctrl;
|
||||
if (!IS_ERR_OR_NULL(touch_cdev->pinctrl_on_state))
|
||||
pinctrl_select_state(touch_cdev->pinctrl_node,
|
||||
touch_cdev->pinctrl_on_state);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue