hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/net/wireless/intel/ipw2x00/libipw_module.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*******************************************************************************
23
34 Copyright(c) 2004-2005 Intel Corporation. All rights reserved.
....@@ -8,21 +9,6 @@
89 <j@w1.fi>
910 Copyright (c) 2002-2003, Jouni Malinen <j@w1.fi>
1011
11
- This program is free software; you can redistribute it and/or modify it
12
- under the terms of version 2 of the GNU General Public License as
13
- published by the Free Software Foundation.
14
-
15
- This program is distributed in the hope that it will be useful, but WITHOUT
16
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17
- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
18
- more details.
19
-
20
- You should have received a copy of the GNU General Public License along with
21
- this program; if not, write to the Free Software Foundation, Inc., 59
22
- Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23
-
24
- The full GNU General Public License is included in this distribution in the
25
- file called LICENSE.
2612
2713 Contact Information:
2814 Intel Linux Wireless <ilw@linux.intel.com>
....@@ -254,13 +240,12 @@
254240 return strnlen(buf, len);
255241 }
256242
257
-static const struct file_operations debug_level_proc_fops = {
258
- .owner = THIS_MODULE,
259
- .open = debug_level_proc_open,
260
- .read = seq_read,
261
- .llseek = seq_lseek,
262
- .release = single_release,
263
- .write = debug_level_proc_write,
243
+static const struct proc_ops debug_level_proc_ops = {
244
+ .proc_open = debug_level_proc_open,
245
+ .proc_read = seq_read,
246
+ .proc_lseek = seq_lseek,
247
+ .proc_release = single_release,
248
+ .proc_write = debug_level_proc_write,
264249 };
265250 #endif /* CONFIG_LIBIPW_DEBUG */
266251
....@@ -277,7 +262,7 @@
277262 return -EIO;
278263 }
279264 e = proc_create("debug_level", 0644, libipw_proc,
280
- &debug_level_proc_fops);
265
+ &debug_level_proc_ops);
281266 if (!e) {
282267 remove_proc_entry(DRV_PROCNAME, init_net.proc_net);
283268 libipw_proc = NULL;