| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /******************************************************************************* |
|---|
| 2 | 3 | |
|---|
| 3 | 4 | Copyright(c) 2004-2005 Intel Corporation. All rights reserved. |
|---|
| .. | .. |
|---|
| 8 | 9 | <j@w1.fi> |
|---|
| 9 | 10 | Copyright (c) 2002-2003, Jouni Malinen <j@w1.fi> |
|---|
| 10 | 11 | |
|---|
| 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. |
|---|
| 26 | 12 | |
|---|
| 27 | 13 | Contact Information: |
|---|
| 28 | 14 | Intel Linux Wireless <ilw@linux.intel.com> |
|---|
| .. | .. |
|---|
| 254 | 240 | return strnlen(buf, len); |
|---|
| 255 | 241 | } |
|---|
| 256 | 242 | |
|---|
| 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, |
|---|
| 264 | 249 | }; |
|---|
| 265 | 250 | #endif /* CONFIG_LIBIPW_DEBUG */ |
|---|
| 266 | 251 | |
|---|
| .. | .. |
|---|
| 277 | 262 | return -EIO; |
|---|
| 278 | 263 | } |
|---|
| 279 | 264 | e = proc_create("debug_level", 0644, libipw_proc, |
|---|
| 280 | | - &debug_level_proc_fops); |
|---|
| 265 | + &debug_level_proc_ops); |
|---|
| 281 | 266 | if (!e) { |
|---|
| 282 | 267 | remove_proc_entry(DRV_PROCNAME, init_net.proc_net); |
|---|
| 283 | 268 | libipw_proc = NULL; |
|---|