From 6778948f9de86c3cfaf36725a7c87dcff9ba247f Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Mon, 11 Dec 2023 08:20:59 +0000 Subject: [PATCH] kernel_5.10 no rt --- kernel/drivers/input/touchscreen/gt1x/gt1x_tools.c | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/kernel/drivers/input/touchscreen/gt1x/gt1x_tools.c b/kernel/drivers/input/touchscreen/gt1x/gt1x_tools.c index bf442dc..1d824bd 100644 --- a/kernel/drivers/input/touchscreen/gt1x/gt1x_tools.c +++ b/kernel/drivers/input/touchscreen/gt1x/gt1x_tools.c @@ -60,12 +60,11 @@ static char procname[20] = { 0 }; static struct proc_dir_entry *gt1x_tool_proc_entry; -static struct file_operations gt1x_tool_fops = { - .read = gt1x_tool_read, - .write = gt1x_tool_write, - .open = gt1x_tool_open, - .release = gt1x_tool_release, - .owner = THIS_MODULE, +static const struct proc_ops gt1x_tool_fops = { + .proc_read = gt1x_tool_read, + .proc_write = gt1x_tool_write, + .proc_open = gt1x_tool_open, + .proc_release = gt1x_tool_release, }; static void set_tool_node_name(char *procname) -- Gitblit v1.6.2