.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Low-level parallel-support for PC-style hardware integrated in the |
---|
3 | 4 | * LASI-Controller (on GSC-Bus) for HP-PARISC Workstations |
---|
4 | 5 | * |
---|
5 | 6 | * (C) 1999-2001 by Helge Deller <deller@gmx.de> |
---|
6 | | - * |
---|
7 | | - * |
---|
8 | | - * This program is free software; you can redistribute it and/or modify |
---|
9 | | - * it under the terms of the GNU General Public License as published by |
---|
10 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
11 | | - * (at your option) any later version. |
---|
12 | | - * |
---|
13 | | - * This program is distributed in the hope that it will be useful, |
---|
14 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
16 | | - * GNU General Public License for more details. |
---|
17 | | - * |
---|
18 | | - * You should have received a copy of the GNU General Public License |
---|
19 | | - * along with this program; if not, write to the Free Software |
---|
20 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
---|
21 | 7 | * |
---|
22 | 8 | * based on parport_pc.c by |
---|
23 | 9 | * Grant Guenther <grant@torque.net> |
---|
.. | .. |
---|
85 | 71 | static inline void parport_gsc_write_data(struct parport *p, unsigned char d) |
---|
86 | 72 | { |
---|
87 | 73 | #ifdef DEBUG_PARPORT |
---|
88 | | - printk (KERN_DEBUG "parport_gsc_write_data(%p,0x%02x)\n", p, d); |
---|
| 74 | + printk(KERN_DEBUG "%s(%p,0x%02x)\n", __func__, p, d); |
---|
89 | 75 | #endif |
---|
90 | 76 | parport_writeb(d, DATA(p)); |
---|
91 | 77 | } |
---|
.. | .. |
---|
94 | 80 | { |
---|
95 | 81 | unsigned char val = parport_readb (DATA (p)); |
---|
96 | 82 | #ifdef DEBUG_PARPORT |
---|
97 | | - printk (KERN_DEBUG "parport_gsc_read_data(%p) = 0x%02x\n", |
---|
98 | | - p, val); |
---|
| 83 | + printk(KERN_DEBUG "%s(%p) = 0x%02x\n", __func__, p, val); |
---|
99 | 84 | #endif |
---|
100 | 85 | return val; |
---|
101 | 86 | } |
---|
.. | .. |
---|
109 | 94 | struct parport_gsc_private *priv = p->physport->private_data; |
---|
110 | 95 | unsigned char ctr = priv->ctr; |
---|
111 | 96 | #ifdef DEBUG_PARPORT |
---|
112 | | - printk (KERN_DEBUG |
---|
113 | | - "__parport_gsc_frob_control(%02x,%02x): %02x -> %02x\n", |
---|
114 | | - mask, val, ctr, ((ctr & ~mask) ^ val) & priv->ctr_writable); |
---|
| 97 | + printk(KERN_DEBUG "%s(%02x,%02x): %02x -> %02x\n", |
---|
| 98 | + __func__, mask, val, |
---|
| 99 | + ctr, ((ctr & ~mask) ^ val) & priv->ctr_writable); |
---|
115 | 100 | #endif |
---|
116 | 101 | ctr = (ctr & ~mask) ^ val; |
---|
117 | 102 | ctr &= priv->ctr_writable; /* only write writable bits. */ |
---|
.. | .. |
---|
140 | 125 | |
---|
141 | 126 | /* Take this out when drivers have adapted to newer interface. */ |
---|
142 | 127 | if (d & 0x20) { |
---|
143 | | - printk (KERN_DEBUG "%s (%s): use data_reverse for this!\n", |
---|
144 | | - p->name, p->cad->name); |
---|
| 128 | + printk(KERN_DEBUG "%s (%s): use data_reverse for this!\n", |
---|
| 129 | + p->name, p->cad->name); |
---|
145 | 130 | parport_gsc_data_reverse (p); |
---|
146 | 131 | } |
---|
147 | 132 | |
---|
.. | .. |
---|
169 | 154 | |
---|
170 | 155 | /* Take this out when drivers have adapted to newer interface. */ |
---|
171 | 156 | if (mask & 0x20) { |
---|
172 | | - printk (KERN_DEBUG "%s (%s): use data_%s for this!\n", |
---|
173 | | - p->name, p->cad->name, |
---|
174 | | - (val & 0x20) ? "reverse" : "forward"); |
---|
| 157 | + printk(KERN_DEBUG "%s (%s): use data_%s for this!\n", |
---|
| 158 | + p->name, p->cad->name, |
---|
| 159 | + (val & 0x20) ? "reverse" : "forward"); |
---|
175 | 160 | if (val & 0x20) |
---|
176 | 161 | parport_gsc_data_reverse (p); |
---|
177 | 162 | else |
---|