hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/mtd/devices/docg3.h
....@@ -1,22 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Handles the M-Systems DiskOnChip G3 chip
34 *
45 * Copyright (C) 2011 Robert Jarzmik
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program; if not, write to the Free Software
18
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
- *
206 */
217
228 #ifndef _MTD_DOCG3_H
....@@ -317,17 +303,6 @@
317303 #define doc_info(fmt, arg...) dev_info(docg3->dev, (fmt), ## arg)
318304 #define doc_dbg(fmt, arg...) dev_dbg(docg3->dev, (fmt), ## arg)
319305 #define doc_vdbg(fmt, arg...) dev_vdbg(docg3->dev, (fmt), ## arg)
320
-
321
-#define DEBUGFS_RO_ATTR(name, show_fct) \
322
- static int name##_open(struct inode *inode, struct file *file) \
323
- { return single_open(file, show_fct, inode->i_private); } \
324
- static const struct file_operations name##_fops = { \
325
- .owner = THIS_MODULE, \
326
- .open = name##_open, \
327
- .llseek = seq_lseek, \
328
- .read = seq_read, \
329
- .release = single_release \
330
- };
331306 #endif
332307
333308 /*