mmi_qc3p_wt6670f: int pin config to input mode

wt6670f int pin(gpio85) default is output mode,if request_irq
while fialed(return -5),so config to input mode to fix it.

Change-Id: I1f6e08e6b1ca652be57448334bb15465e3a87d3f
Reviewed-on: https://gerrit.mot.com/2120830
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <huaqin85@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
wutao 2021-11-18 20:22:15 +08:00 • committed by huaqin85
commit 08b3dee44f

View file

@ -430,6 +430,7 @@ static int wt6670f_parse_dt(struct device *dev)
else
pr_info("%s: wt6670f-int-gpio = %d\n", __func__,wt6670f_int_pin);
gpio_request(wt6670f_int_pin,"wt6670f_int");
gpio_direction_input(wt6670f_int_pin); //configure to input mode
ret = request_irq(gpio_to_irq(wt6670f_int_pin), wt6670f_intr_handler,
IRQF_TRIGGER_FALLING | IRQF_ONESHOT, "wt6670f int", dev);