hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/parport/parport_gsc.h
....@@ -1,23 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Low-level parallel-support for PC-style hardware integrated in the
34 * LASI-Controller (on GSC-Bus) for HP-PARISC Workstations
45 *
56 * (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
217 *
228 * based on parport_pc.c by
239 * Grant Guenther <grant@torque.net>
....@@ -85,7 +71,7 @@
8571 static inline void parport_gsc_write_data(struct parport *p, unsigned char d)
8672 {
8773 #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);
8975 #endif
9076 parport_writeb(d, DATA(p));
9177 }
....@@ -94,8 +80,7 @@
9480 {
9581 unsigned char val = parport_readb (DATA (p));
9682 #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);
9984 #endif
10085 return val;
10186 }
....@@ -109,9 +94,9 @@
10994 struct parport_gsc_private *priv = p->physport->private_data;
11095 unsigned char ctr = priv->ctr;
11196 #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);
115100 #endif
116101 ctr = (ctr & ~mask) ^ val;
117102 ctr &= priv->ctr_writable; /* only write writable bits. */
....@@ -140,8 +125,8 @@
140125
141126 /* Take this out when drivers have adapted to newer interface. */
142127 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);
145130 parport_gsc_data_reverse (p);
146131 }
147132
....@@ -169,9 +154,9 @@
169154
170155 /* Take this out when drivers have adapted to newer interface. */
171156 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");
175160 if (val & 0x20)
176161 parport_gsc_data_reverse (p);
177162 else