input: ili9882_mmi: remove unused netlink codes

Ported from (CR)

ili9882_mmi:
Removed unused netlink codes, fix vts test fail.

Change-Id: I9c35145f9f067e194ebc3c348ed46cd42d95614d
Signed-off-by: Robert Cabral <robertc@motorola.com>
Reviewed-on: https://gerrit.mot.com/2593044
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Levy Gabriel <levy@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Robert Cabral 2023-04-28 15:51:31 -03:00 • committed by Levy Gabriel
commit d73cc9a3e8
4 changed files with 7 additions and 7 deletions

View file

@ -942,7 +942,7 @@ struct ilitek_ts_data {
bool wq_bat_ctrl;
bool panel_gesture_enable;
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0))
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0))
bool netlink;
#endif
bool report;

View file

@ -1683,7 +1683,7 @@ static ssize_t ilitek_node_ioctl_write(struct file *filp, const char *buff, size
} else if (strncmp(cmd, "gestureinfo", strlen(cmd)) == 0) {
ilits->gesture_mode = DATA_FORMAT_GESTURE_INFO;
ILI_INFO("gesture mode = %d\n", ilits->gesture_mode);
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0))
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0))
} else if (strncmp(cmd, "netlink", strlen(cmd)) == 0) {
ilits->netlink = !ilits->netlink;
ILI_INFO("netlink flag= %d\n", ilits->netlink);
@ -2195,7 +2195,7 @@ static long ilitek_node_ioctl(struct file *filp, unsigned int cmd, unsigned long
ret = -ENOTTY;
}
break;
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0))
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0))
case ILITEK_IOCTL_TP_NETLINK_CTRL:
if (copy_from_user(szBuf, (u8 *) arg, 1)) {
ILI_ERR("Failed to copy data from user space\n");
@ -2626,7 +2626,7 @@ proc_node iliproc[] = {
};
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0))
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0))
#define NETLINK_USER 21
static struct sock *netlink_skb;
static struct nlmsghdr *netlink_head;
@ -2831,7 +2831,7 @@ void ili_node_init(void)
ILI_INFO("Succeed to create %s under /proc\n", iliproc[i].name);
}
}
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0))
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0))
netlink_init();
#endif
#ifndef CONFIG_INPUT_TOUCHSCREEN_MMI

View file

@ -735,7 +735,7 @@ static int ilitek_spi_probe(struct spi_device *spi)
ilits->gesture_demo_ctrl = DISABLE;
ilits->wtd_ctrl = OFF;
ilits->report = ENABLE;
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0))
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0))
ilits->netlink = DISABLE;
#endif
ilits->dnp = DISABLE;

View file

@ -832,7 +832,7 @@ static void ilitek_tddi_touch_send_debug_data(u8 *buf, int len)
mutex_lock(&ilits->debug_mutex);
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0))
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0))
if (!ilits->netlink && !ilits->dnp)
goto out;