hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/input/touchscreen/gt1x/gt1x_tools.c
....@@ -60,12 +60,11 @@
6060 static char procname[20] = { 0 };
6161
6262 static struct proc_dir_entry *gt1x_tool_proc_entry;
63
-static struct file_operations gt1x_tool_fops = {
64
- .read = gt1x_tool_read,
65
- .write = gt1x_tool_write,
66
- .open = gt1x_tool_open,
67
- .release = gt1x_tool_release,
68
- .owner = THIS_MODULE,
63
+static const struct proc_ops gt1x_tool_fops = {
64
+ .proc_read = gt1x_tool_read,
65
+ .proc_write = gt1x_tool_write,
66
+ .proc_open = gt1x_tool_open,
67
+ .proc_release = gt1x_tool_release,
6968 };
7069
7170 static void set_tool_node_name(char *procname)