| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Device driver for the SYMBIOS/LSILOGIC 53C8XX and 53C1010 family |
|---|
| 3 | 4 | * of PCI-SCSI IO processors. |
|---|
| .. | .. |
|---|
| 21 | 22 | * Copyright (C) 1997 Richard Waltham <dormouse@farsrobt.demon.co.uk> |
|---|
| 22 | 23 | * |
|---|
| 23 | 24 | *----------------------------------------------------------------------------- |
|---|
| 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 |
|---|
| 38 | 25 | */ |
|---|
| 39 | 26 | |
|---|
| 40 | 27 | #include "sym_glue.h" |
|---|
| .. | .. |
|---|
| 240 | 227 | /* |
|---|
| 241 | 228 | * 24C16 EEPROM reading. |
|---|
| 242 | 229 | * |
|---|
| 243 | | - * GPOI0 - data in/data out |
|---|
| 230 | + * GPIO0 - data in/data out |
|---|
| 244 | 231 | * GPIO1 - clock |
|---|
| 245 | 232 | * Symbios NVRAM wiring now also used by Tekram. |
|---|
| 246 | 233 | */ |
|---|
| .. | .. |
|---|
| 537 | 524 | /* |
|---|
| 538 | 525 | * 93C46 EEPROM reading. |
|---|
| 539 | 526 | * |
|---|
| 540 | | - * GPOI0 - data in |
|---|
| 527 | + * GPIO0 - data in |
|---|
| 541 | 528 | * GPIO1 - data out |
|---|
| 542 | 529 | * GPIO2 - clock |
|---|
| 543 | 530 | * GPIO4 - chip select |
|---|
| .. | .. |
|---|
| 661 | 648 | { |
|---|
| 662 | 649 | u_char gpcntl, gpreg; |
|---|
| 663 | 650 | u_char old_gpcntl, old_gpreg; |
|---|
| 664 | | - int retv = 1; |
|---|
| 651 | + int retv; |
|---|
| 665 | 652 | |
|---|
| 666 | 653 | /* save current state of GPCNTL and GPREG */ |
|---|
| 667 | 654 | old_gpreg = INB(np, nc_gpreg); |
|---|
| .. | .. |
|---|
| 708 | 695 | data, len); |
|---|
| 709 | 696 | if (!x) |
|---|
| 710 | 697 | break; |
|---|
| 698 | + fallthrough; |
|---|
| 711 | 699 | default: |
|---|
| 712 | 700 | x = sym_read_T93C46_nvram(np, nvram); |
|---|
| 713 | 701 | break; |
|---|