.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Handles the M-Systems DiskOnChip G3 chip |
---|
3 | 4 | * |
---|
4 | 5 | * 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 | | - * |
---|
20 | 6 | */ |
---|
21 | 7 | |
---|
22 | 8 | #ifndef _MTD_DOCG3_H |
---|
.. | .. |
---|
317 | 303 | #define doc_info(fmt, arg...) dev_info(docg3->dev, (fmt), ## arg) |
---|
318 | 304 | #define doc_dbg(fmt, arg...) dev_dbg(docg3->dev, (fmt), ## arg) |
---|
319 | 305 | #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 | | - }; |
---|
331 | 306 | #endif |
---|
332 | 307 | |
---|
333 | 308 | /* |
---|