mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
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:
parent
c763e7f8ae
commit
08b3dee44f
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue