From 01e2bfce40cd917212c8b6d593fcc7832b0cbcee Mon Sep 17 00:00:00 2001 From: liujian24 Date: Thu, 7 Apr 2022 14:52:36 +0800 Subject: [PATCH] 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 Reviewed-by: Wang Wang Submit-Approved: Jira Key --- drivers/input/misc/fpc_fps_mmi/Kbuild | 2 +- drivers/input/misc/fpc_fps_mmi/fpc1020_tee.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/input/misc/fpc_fps_mmi/Kbuild b/drivers/input/misc/fpc_fps_mmi/Kbuild index 3d62e331a5c0..a130565a878d 100644 --- a/drivers/input/misc/fpc_fps_mmi/Kbuild +++ b/drivers/input/misc/fpc_fps_mmi/Kbuild @@ -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 diff --git a/drivers/input/misc/fpc_fps_mmi/fpc1020_tee.c b/drivers/input/misc/fpc_fps_mmi/fpc1020_tee.c index defac36abc30..163bdbcf59b0 100644 --- a/drivers/input/misc/fpc_fps_mmi/fpc1020_tee.c +++ b/drivers/input/misc/fpc_fps_mmi/fpc1020_tee.c @@ -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); }