mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
Devon:FPC fingerprint doesn't work
Pin control feature isn't enabled and FPC fingerprint doesn't work. Enable Pin control macro in makefile and driver code. Change-Id: I5a163761520fa7920ee657bb71ad81b752c91a60 Reviewed-on: https://gerrit.mot.com/2235882 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: liujian <liujian24@lenovo.com> Reviewed-by: Wang Wang <wangwang1@lenovo.com> Submit-Approved: Jira Key
This commit is contained in:
parent
bbbc9a2bce
commit
01e2bfce40
2 changed files with 4 additions and 4 deletions
|
|
@ -6,7 +6,7 @@ prod_list := devon
|
|||
find_target := $(foreach find, $(prod_list), $(findstring $(find), $(TARGET_PRODUCT)))
|
||||
find_target := $(strip $(find_target))
|
||||
$(warning find_target=$(find_target))
|
||||
ifeq ($(find_target),y)
|
||||
ifneq ($(find_target),)
|
||||
$(warning define SUPPORT_PIN_CTRL)
|
||||
EXTRA_CFLAGS += -DSUPPORT_PIN_CTRL
|
||||
endif
|
||||
|
|
|
|||
|
|
@ -205,7 +205,7 @@ static int hw_reset(struct fpc1020_data *fpc1020)
|
|||
exit:
|
||||
return rc;
|
||||
}
|
||||
#ifdef SUPPORT_PIN_CTRl
|
||||
#ifdef SUPPORT_PIN_CTRL
|
||||
static void fpc_pinctrl_on(struct device *dev)
|
||||
{
|
||||
struct pinctrl *ptl = devm_pinctrl_get(dev);
|
||||
|
|
@ -238,7 +238,7 @@ static ssize_t hw_reset_set(struct device *dev,
|
|||
} else if (!strncmp(buf, "poweron", strlen("poweron"))) {
|
||||
rc = fpc1020_power_on(fpc1020);
|
||||
}
|
||||
#ifdef SUPPORT_PIN_CTRl
|
||||
#ifdef SUPPORT_PIN_CTRL
|
||||
else if (!strncmp(buf, "pinctrl", strlen("pinctrl"))) {
|
||||
fpc_pinctrl_on(dev);
|
||||
pr_info("fpc IRQ after reset %d\n", gpio_get_value(fpc1020->irq_gpio));
|
||||
|
|
@ -423,7 +423,7 @@ static int fpc1020_probe(struct platform_device *pdev)
|
|||
rc = -ENOMEM;
|
||||
goto exit;
|
||||
}
|
||||
#ifdef SUPPORT_PIN_CTRl
|
||||
#ifdef SUPPORT_PIN_CTRL
|
||||
if(of_property_read_bool(np,"fpc_pinctrl_on")) {
|
||||
fpc_pinctrl_on(dev);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue