| .. | .. |
|---|
| 60 | 60 | static char procname[20] = { 0 }; |
|---|
| 61 | 61 | |
|---|
| 62 | 62 | 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, |
|---|
| 69 | 68 | }; |
|---|
| 70 | 69 | |
|---|
| 71 | 70 | static void set_tool_node_name(char *procname) |
|---|