driver/GoodixFP Add the soft dependency of gpio-pcal6408

motorola/kernel/modules/drivers/input/misc/goodix_fod_mmi/gf_spi.c:
Add the soft dependency of gpio-pcal6408:
MODULE_SOFTDEP("pre: gpio-pcal6408");

Pioneer (alias: banks) wires a GPIO PIN from expander IC TCA6418 for
the reset PIN FP_RST_N of fingerprint sensor GF3626.
So, the fingerprint sensor driver has a dependency on the driver of
GPIO expander.

Change-Id: I3bae36c1b87bc0c3f50fd5a1b57511b90cc5771f
Signed-off-by: chengql2 <chengql2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1855475
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
chengql2 2021-01-20 10:19:57 +08:00 • committed by Qiuliang Cheng
commit 39d494b928
2 changed files with 8 additions and 0 deletions

View file

@ -5,6 +5,11 @@ EXTRA_CFLAGS += -I$(ANDROID_BUILD_TOP)/motorola/kernel/modules/include \
ifneq ($(filter m y,$(CONFIG_MMI_RELAY)),)
EXTRA_CFLAGS += -DMMI_RELAY_MODULE
endif
ifneq ($(filter banks%, $(TARGET_PRODUCT)),)
EXTRA_CFLAGS += -DSOFTDEP_GPIO_PCAL6408
endif
goodix_fod_mmi-y += gf_spi.o netlink.o platform.o
obj-m += goodix_fod_mmi.o

View file

@ -1014,3 +1014,6 @@ MODULE_AUTHOR("Jiangtao Yi, <yijiangtao@goodix.com>");
MODULE_AUTHOR("Jandy Gou, <gouqingsong@goodix.com>");
MODULE_DESCRIPTION("goodix fingerprint sensor device driver");
MODULE_LICENSE("GPL");
#ifdef SOFTDEP_GPIO_PCAL6408
MODULE_SOFTDEP("pre: gpio-pcal6408");
#endif