hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/scsi/sym53c8xx_2/sym_nvram.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Device driver for the SYMBIOS/LSILOGIC 53C8XX and 53C1010 family
34 * of PCI-SCSI IO processors.
....@@ -21,20 +22,6 @@
2122 * Copyright (C) 1997 Richard Waltham <dormouse@farsrobt.demon.co.uk>
2223 *
2324 *-----------------------------------------------------------------------------
24
- *
25
- * This program is free software; you can redistribute it and/or modify
26
- * it under the terms of the GNU General Public License as published by
27
- * the Free Software Foundation; either version 2 of the License, or
28
- * (at your option) any later version.
29
- *
30
- * This program is distributed in the hope that it will be useful,
31
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
32
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33
- * GNU General Public License for more details.
34
- *
35
- * You should have received a copy of the GNU General Public License
36
- * along with this program; if not, write to the Free Software
37
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
3825 */
3926
4027 #include "sym_glue.h"
....@@ -240,7 +227,7 @@
240227 /*
241228 * 24C16 EEPROM reading.
242229 *
243
- * GPOI0 - data in/data out
230
+ * GPIO0 - data in/data out
244231 * GPIO1 - clock
245232 * Symbios NVRAM wiring now also used by Tekram.
246233 */
....@@ -537,7 +524,7 @@
537524 /*
538525 * 93C46 EEPROM reading.
539526 *
540
- * GPOI0 - data in
527
+ * GPIO0 - data in
541528 * GPIO1 - data out
542529 * GPIO2 - clock
543530 * GPIO4 - chip select
....@@ -661,7 +648,7 @@
661648 {
662649 u_char gpcntl, gpreg;
663650 u_char old_gpcntl, old_gpreg;
664
- int retv = 1;
651
+ int retv;
665652
666653 /* save current state of GPCNTL and GPREG */
667654 old_gpreg = INB(np, nc_gpreg);
....@@ -708,6 +695,7 @@
708695 data, len);
709696 if (!x)
710697 break;
698
+ fallthrough;
711699 default:
712700 x = sym_read_T93C46_nvram(np, nvram);
713701 break;