From c8d928e98475344ddf0ed3406480e6a1566b93f2 Mon Sep 17 00:00:00 2001 From: dengwei1 Date: Fri, 14 Aug 2020 19:34:59 +0800 Subject: [PATCH] guam: input add touch ili9882n factory support input add touch ili9882n factory support NO_PROP_NEEDED Change-Id: Icaa26768e3ca53d726855b97f2a689e8f2f10fde Signed-off-by: dengwei1 Reviewed-on: https://gerrit.mot.com/1722559 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- drivers/input/touchscreen/ili9882_mmi/ili9882_node.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/ili9882_mmi/ili9882_node.c b/drivers/input/touchscreen/ili9882_mmi/ili9882_node.c index dd587f64cba3..5bb3b89da3cf 100755 --- a/drivers/input/touchscreen/ili9882_mmi/ili9882_node.c +++ b/drivers/input/touchscreen/ili9882_mmi/ili9882_node.c @@ -108,6 +108,7 @@ struct record_state { static unsigned char g_user_buf[USER_STR_BUFF] = {0}; #define ILI_SPI_NAME "ilitek" +#define ILI_SPI_NAME_TM "ilitek_tm" static struct class *touchscreen_class; static struct device *touchscreen_class_dev; @@ -2533,8 +2534,11 @@ int ilitek_sys_init(void) ILI_ERR("Failed to create touchscreen class!\n"); return ret; } + if(MODEL_TM == ilits->tp_module) + touchscreen_class_dev = device_create(touchscreen_class, NULL, devno, NULL, ILI_SPI_NAME_TM); + else + touchscreen_class_dev = device_create(touchscreen_class, NULL, devno, NULL, ILI_SPI_NAME); - touchscreen_class_dev = device_create(touchscreen_class, NULL, devno, NULL, ILI_SPI_NAME); pr_info(" touchscreen_class_dev = %p \n", touchscreen_class_dev); if (IS_ERR(touchscreen_class_dev)) { ret = PTR_ERR(touchscreen_class_dev);