mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
guam: input add touch ili9882n factory support
input add touch ili9882n factory support NO_PROP_NEEDED Change-Id: Icaa26768e3ca53d726855b97f2a689e8f2f10fde Signed-off-by: dengwei1 <dengwei1@motorola.com> Reviewed-on: https://gerrit.mot.com/1722559 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
6d473cd9b0
commit
c8d928e984
1 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue